I’ve been working on JSF 2.1/Primefaces 3.4.1 and I’ve been having some troubles with my beans, like they were never instantiated but they run some of their functions and then they just stop working, does anyone knows what would be the reason of this? I’ve been checking for a while and I’ve come to the conclusion that maybe it is because I dont use any navigation rules, am I right?
I’ve been working on JSF 2.1/Primefaces 3.4.1 and I’ve been having some troubles with
Share
In jsf 2 You dont need navigation rules in xml. Instead you have the option to also specify navigation outcome directly in the EL code.
The returned value of myBean.view is the name of the view the user will navigate to when clicking the button
In jsf 1.x you would have to specify navigation rules in xml
If you are interested in how navigation is done the “old” way, you can look at some examples here: http://www.jsftutorials.net/jsf-navigation-by-examples.html
and read more about the differences here: http://www.mkyong.com/jsf2/implicit-navigation-in-jsf-2-0/