File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes My navigation problem 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 "My navigation problem " Watch "My navigation problem " New topic
Author

My navigation problem

kenji kunoichi
Ranch Hand

Joined: Jun 02, 2007
Posts: 44
I am making a JSF application where I have a page called result.jsp here I made a button which is link to an add page .
so I made like in result.jsp :
<h:commandButton id="addpage" action="addpage" value="#{message.add_button_text}" />

then at faces-config.xml I added like :

<navigation-rule>
<from-view-id>/pages/form.jsp</from-view-id>
<navigation-case>
<from-outcome>result</from-outcome>
<to-view-id>/pages/result.jsp</to-view-id>
</navigation-case>
</navigation-rule>

<navigation-rule>
<from-view-id>/pages/result.jsp</from-view-id>
<navigation-case>
<from-outcome>addpage</from-outcome>
<to-view-id>/pages/addpage.jsp</to-view-id>

</navigation-case>
</navigation-rule>

but on clicking the button no addpage is coming .
Sumeet Singh Aryan
Ranch Hand

Joined: Jul 30, 2008
Posts: 43
please provide the URL-pattern of your faces servlet from the web.xml.... There may be a problem


The woods are lovely, dark and deep, But I have promises to keep; And miles to go before I sleep, And miles to go before I sleep. - Robert Frost
 
wood burning stoves
 
subject: My navigation problem
 
Similar Threads
Navigation using h:commandLink
JSF property file's value is not executing
commandButton problem
On a button click need to load a select one menu
errors's management