This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes navigation issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "navigation issue" Watch "navigation issue" New topic
Author

navigation issue

Yogesh Agrawal
Greenhorn

Joined: Nov 10, 2006
Posts: 4
Hi,
I am facing an issue with the JSF navigation.

I have three jsp A.jsp, B.jsp and C.jsp

Here is the code for all of them

A.jsp
<h:commandButton value="View" action="view" />

B.jsp
<h:commandButton value="Debug" action="debugmore" />

C.jsp
<hutputText value="hello"/>

and here is faces-config

<navigation-rule>
<navigation-case>
<from-outcome>view</from-outcome>
<to-view-id>/B.jsp</to-view-id>
</navigation-case>
</navigation-rule>

<navigation-rule>
<navigation-case>
<from-outcome>debugmore</from-outcome>
<to-view-id>/C.jsp</to-view-id>
</navigation-case>
</navigation-rule>

So when I click on the button View on A.jsp it takes me to B.jsp
but when I click on the button Debug in B.jsp it doesn't take me to
C.jsp but it refreshes the B.jsp and show the B.jsp

Any help will be appreciated.

Thanks,
Yogesh
chloe wong
Greenhorn

Joined: Aug 02, 2006
Posts: 17
do you have other tags, example like text box in B.jsp...i mean other than the commandLink
Yogesh Agrawal
Greenhorn

Joined: Nov 10, 2006
Posts: 4
I have datatable and one of the column has selectonemenu and the rest of the column has text in B.jsp
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: navigation issue
 
Similar Threads
My navigation problem
DataTable Connection porblem
Navigation Problem - URL not updated
Navigation using h:commandLink
jsessionid in URL