Re: question about PrettyNavigationHandler, how can I configure and use it properly.

Splash Forums PrettyFaces Users question about PrettyNavigationHandler, how can I configure and use it properly. Re: question about PrettyNavigationHandler, how can I configure and use it properly.

#22775

nicmon
Participant

Thank you, I preferred your first solution, but I had to enter the base url to make it work.

so this is how the code looks like:

@URLMapping(id = "userRequestDetail", pattern = "/userRequestDetail/#{userRequestId : userRequestDetailBean.id}", viewId = "/pages/userRequestDetailPage.xhtml")

and

externalContext.redirect(externalContext.getRequestContextPath() + "/pages/userRequestDetailPage.xhtml?userRequestId=" + getSelectedUserRequest().getId());

the problem is that the URL will not be resolved to pattern and remains “/WebPortal/pages/userRequestDetailPage.xhtml?userRequestId=7”

Shall I use a rewrite rule there or I’m overseeing something?