membersound
membersound

Reputation: 86747

JSF navigation handling?

I'd like to ask what todays best practice of writing page navigation is for web pages with JSF 2? For now I only know defining the return strings of my backing beans, which are then mapped to the according url's. @Controller, @RequestMapping and so on.

But now I'm looking for something especially decoupling backing beans and navigation handling.

Would it be worth to take a look into Spring webflow? Or is there better / easier?

ty!

Upvotes: 0

Views: 2350

Answers (3)

Ondrej Bozek
Ondrej Bozek

Reputation: 11481

PrettyFaces is very good library for management of navigation in JSF, and SEO friendly, intuitive URL addresses. Navigation can be configured using annotations or in separate XML file. I use this library whenever I can.

http://ocpsoft.org/prettyfaces/

Upvotes: 1

Andre
Andre

Reputation: 3904

Jsf 2.0 has what is called implicit navigation. It works like this: if an action result matches a view id (ie jsf page), the navigation will take you to that view. You don't really need any annotations for that.

Upvotes: 1

Steven De Groote
Steven De Groote

Reputation: 2233

Here is a great reference to JSF2 navigation, I use it all the time!

http://mkblog.exadel.com/2009/09/learning-jsf2-navigation/

Upvotes: 0

Related Questions