O'Reilly logo

Java EE 6 Development with NetBeans 7 by David R. Heffelfinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wizard interfaces

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"> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required