This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "navigation problem in jsf" Watch "navigation problem in jsf" New topic

navigation problem in jsf

Marembo Ochieng'

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'

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
I agree. Here's the link:
subject: navigation problem in jsf
It's not a secret anymore!