Re: Question about parameters and jsf phases.

Splash Forums PrettyFaces Users Question about parameters and jsf phases. Re: Question about parameters and jsf phases.

#21086

Regarding your questions:

All i need now, is the information when does the handling of params such as (‘editCustomer/#{customerId}/’) happens (at what exact time does that happen in JSF 2?). To be more clear: at what JSF phase will the ‘customerId’ be available in FacesContext parameter map?

These parameters should be available in all JSF phases because the path parameters are converted into query parameters in the PrettyFilter which gets executed before the FacesServlet.

Another question is:can i somehow programmatically tell prettyfaces: “Look here is the view-url ‘editCustomer/2/’ extract and store parameters for me?

No, there is no user level API for this. I guess you should take a look at the source of PrettyFilter and PrettyPhaseListener to get an idea on how the internals work.

https://github.com/ocpsoft/prettyfaces

I hope this helps :)

Christian