| 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.
|
 |
 |
|
|
subject: h:commandButton value="Click" action="nextPage" , not working as Expected
|
|
|