• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sachin potu
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure about JSF2.0 . but in JSF1.x , if there is no matching navigation-rule, then current page will be displayed.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic