Forums Register Login

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

+Pie Number of slices to send: Send
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

+Pie Number of slices to send: Send
I am not sure about JSF2.0 . but in JSF1.x , if there is no matching navigation-rule, then current page will be displayed.
We begin by testing your absorbancy by exposing you to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1924 times.
Similar Threads
Got stuck with #{param}
navigation issue
My navigation problem
Activating page in another panel -- almost working but puzzled
jsessionid in URL
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:19:11.