wood burning stoves 2.0*
The moose likes JSF and the fly likes navigation problem in jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "navigation problem in jsf" Watch "navigation problem in jsf" New topic
Author

navigation problem in jsf

Marembo Ochieng'
Greenhorn

Joined: Sep 12, 2009
Posts: 19
i am trying to navigate from my main.jsp jsf page to other pages through command buttons and links. i have defined the navigation s shown but it is not working. i simply come back to the main page as if page beans are returning null

What can be the problem?
Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

There could be many reasons for your navigation not happening as expected.
1. Validation might be failing i.e., you would've given required="true", to some component.
2. If there's any rendered attribute for the commandbutton/link, then their state should be saved.
3. Each page should be enclosed within <f:view>. Is it declared properly?
4.If there are any html tags used in the jsf page, then they should be enclosed within <f:verbatim>
So check which one is causing problem for you.
Marembo Ochieng'
Greenhorn

Joined: Sep 12, 2009
Posts: 19
thanks man. actually, i found out that my included pages contained a littler errors. they had un-opened form tag
 
 
subject: navigation problem in jsf
 
Similar Threads
jsf newbie, navigation not working
JSF <h:commandButton action> not working
JSF urls and custom filters
Navigation Problem
Problem with navigation rule!