• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

navigation issue

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
<h:outputText 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
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic