Java Reference
In-Depth Information
Notice that the wizard component automatically adds a
Next
button at the bottom
right, clicking this button takes us to the next page in the wizard.
As expected, at this point the wizard component generates both a
Previous
and a
Next
button.
As we navigate to the wizard and reach the last page, when we click on the
Submit
button we see the confirmation message generated by the
saveCustomer()
method
in our
CustomerController
managed bean. This message is rendered by the
<p:messages>
components, which takes care of nicely styling it without us having to
explicitly use any CSS.