This is a more complex use-case of a wizard constructed using the rich:togglePanel component.

Main advantages of using this component for wizard creation:

- You're not defining any navigation rules and not managing current page shown in your code. You're just inserting rich:togglePanelItem components where needed and switching between them. Also the current page state could be stored using activeItem.
- You are not bound anywhere in controls to which panel you need to switch. Just the @next and @prev shortcuts are used. In that case you could easily add/remove additional panels without making changes in switching code. Though you still could use names in targetItem in case you really need to perform a specific switch.
- Opposite to 3.3.x where toggle controls were encoded as links - in RF 4.x rich:toggleControl is just a behavior so any control can be used for switching.