wood burning stoves 2.0*
The moose likes JSF and the fly likes h:commandButton value= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "h:commandButton value="Click" action="nextPage" , not working as Expected" Watch "h:commandButton value="Click" action="nextPage" , not working as Expected" New topic
Author

h:commandButton value="Click" action="nextPage" , not working as Expected

sachin potu
Greenhorn

Joined: Oct 22, 2011
Posts: 21
Hi,

I am a JSF beginner, and i came to see one blog

I am using JSF 2.0 Mojarra release

in this Blog Mr. Ryan Lubke say's that

<h:commandButton value="Click" action="nextPage"/>

Give the above, if there is no explicit rule defined in the faces-config.xml for the nextPage outcome, the default JSF 2.0 navigation handler will try to match a view on disk (i.e. nextPage.xhtml). If found, it will navigate the user to that view


when i tried this, to my surprise it didnot worked

i am attaching the code which i am using, this is an attachment, JSF Project src

can anyone help and let me know the issue

thanks

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

I am not sure about JSF2.0 . but in JSF1.x , if there is no matching navigation-rule, then current page will be displayed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: h:commandButton value="Click" action="nextPage" , not working as Expected
 
Similar Threads
h:commandbutton javascript
h:commandButton and h:commandLink not invoking the model during first click
Got stuck with #{param}
A multi-step wizard form with multiple &lt;ui:include&gt;s
Ajax listener method is not fire for other(except first) component