Re: PrettyFaces + Primefaces url trouble

Splash Forums PrettyFaces Users PrettyFaces + Primefaces url trouble Re: PrettyFaces + Primefaces url trouble

#23180

You write that you want an URL like this:

http://example.com/system/grupo/20

In this case you have to implement some method that loads the corresponding data from the database. Think of a case where somebody bookmarks this URL and loads it again after some minutes. In this case there is no button that is clicked.

PrettyFaces is all about building URLs that work independently from each others. You will have to do a bit of refactoring of you code if you want such pretty URLs.

Please have a look at this post I wrote some time ago, which explains the general pattern for implementing such URLs:

http://ocpsoft.org/support/prettyfaces-users/prettyfaces-hibernate-spring-lazy-initialization#post-3355

I hope this helps. :)

Christian