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.

#22771

Hi,

there are a number of things in your example that are very uncommon:

1. You typically don’t need any navigation rules in your faces-config.xml if you are using PrettyFaces.

2. Your mapping for the detail page doesn’t contain any path parameter to identify which record is viewed. This isn’t very RESTful. If for example a user reload the detail page (via F5 or by using a bookmark), your application cannot know which is the “current record”.

3. Invoking the NavigationHandler directly is also very uncommon.

Perhaps you should have a look at this post I wrote some time ago. It contains a general description how to implement the typical CRUD scenario with PrettyFaces:

Prettyfaces + Hibernate + Spring lazy initialization

Feel free to ask any question you have regarding the example. :)

Christian