In addition to using tabs, another common way of dividing long forms is by using wizards. Wizards are useful whenever we need the users to fill in input fields in a specific order. In our previous example, we had no way to force the user to enter address information before entering phone number information. This prevents us from validating that the phone numbers entered correspond to the geographical area in the address. To solve this problem we can use a wizard interface, which can be done easily with the PrimeFaces'<p:wizard>
component. The following example illustrates how to use this component:
<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ...
No credit card required