img
. . . . . .
Figure 18-18. JSF support of JSR-303 Bean Validation
Step 2: Select Hobbies
Let's proceed to implement step 2, which is to select the hobbies for the contact. Listing 18-18 shows the
view file (webapp/WEB-INF/flows/contacts/add-step-2.xhtml).
Listing 18-18. The Add Contact Step 2 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>
<ui:define name="content">
<h1>#{msg['title_contact_add_step_2']}</h1>
<h:form >
<h3>
<h:outputText value="#{msg['label_contact_first_name']}: "/>
<h:outputText value="#{contactBean.contact.firstName}"/>
<br/>
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home