Hi,
I am trying to submit a form and redirect the user upon successful validation. Here is the relevant part of my XHTML:
Code: Select all
<p:commandButton value="Continue" actionListener="#{registrationController.register()}" update="registrationForm"/>
I have error messages defined for the input fields and when I do not properly enter data, they are properly displayed. When the form does validate however, it is entered in the database and I wish to redirect the user to another page. I have tried setting "action" to not avail. The control should feature an "outcome" property but my IDE insists that property is not defined. Another thread I read here suggests that the property does exist and will properly evaluate but this doesn't work either.
How can I get the command button to redirect the user upon succesful validation?
Thanks!