Re: [solved] Problem on actionUrl param from a4j components when using pretty faces

Splash Forums PrettyFaces Users [solved] Problem on actionUrl param from a4j components when using pretty faces Re: [solved] Problem on actionUrl param from a4j components when using pretty faces

#20031

Ricardo Amaral
Participant

Hi Lincoln,

After the page with the URL mapped by pretty faces (e.g.: /myapp/search/coke ) is loaded, when I click on a link (a4j:commandLink) I’m expecting the right method of backing bean be called. What is happening is the same method executed by the URL /myapp/search/coke is being called when I click the link, because the “actionURL” param of the html anchor tag rendered for the component a4j:commandLink is inheriting the same URL “/myapp/search/coke”.

This is happening because when I click a link (a4j:commandLink), the pretty faces filter is receiving the same URL “/myapp/search/coke” and dispatching to direction specified by pretty-faces.xml.

I don’t know if I was a little more clear now! :)

Maybe the solution is so simple that I can’t see!

Thanks!