36.10. Seam Navigation migration to JSF

Two changes in JSF 2 which Seam 2 influenced are in navigation. Navigation enhancements include implicit navigation and also conditional navigation, similar to conditions in pages.xml in Seam 2. These two features have been covered in http://java.dzone.com/articles/fluent-navigation-jsf-2 or http://mkblog.exadel.com/2009/09/learning-jsf2-navigation/ and http://andyschwartz.wordpress.com/2009/07/31/whats-new-in-jsf-2/#navigation. While slightly more work in some cases, using a combination of these two navigation features from pages.xml should be fairly straightforward.

While not directly related to navigation, page actions and params also have corresponding solutions in JSF 2. Any number of view parameters can be assigned to a view. They also can participate in conversion and validation, which is more powerful than what Seam 2 offered in pages.xml. A view action in JSF 2 can be done by creating a listener for the preRenderView event within an f:metadata section.