img
. . . . . .
@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"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
template="/WEB-INF/layouts/standard.xhtml">
<ui:define name="title">#{msg['application_name']}</ui:define>
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home