@Override
public String getAsString(FacesContext ctx, UIComponent component, Object value) {
return (String) value;
}
}
Listing 18-19 should be self-explanatory. To test the view, enter information in step 1, and then click
the Next button. Step 2 will be displayed, as shown in Figure 18-19.
Figure 18-19. Add contact : step 2
Step 3: Review Information
Step 3 of the add contact flow is to review the entered information so that the user can go back to modify
the information or save the contact information. Listing 18-20 shows the step 3 view (webapp/WEB-
INF/flows/contacts/review.xhtml).
Listing 18-20. The Review Contact View
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
template="/WEB-INF/layouts/standard.xhtml">
<ui:define name="title">#{msg['application_name']}</ui:define>
Search WWH :