Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

navigation issue

 
Yogesh Agrawal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do you have other tags, example like text box in B.jsp...i mean other than the commandLink
 
Yogesh Agrawal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have datatable and one of the column has selectonemenu and the rest of the column has text in B.jsp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic