HTML and CSS Reference
In-Depth Information
<h:message for="favoriteFood"/>
<h:outputText value="Favorite Beverage"></h:outputText>
<h:inputText id="favoriteBeverge" value="#{favorite.beverage}" required="true">
</h:inputText>
<h:message for="favoriteBeverge"/>
<h:outputText value="Favorite Sport"></h:outputText>
<h:inputText id="favoriteSport" value="#{favorite.sport}" required="true">
</h:inputText>
<h:message for="favoriteSport"/>
</h:panelGrid>
<h:commandButton value="Save my favorites" action="#{favorite.save}"/><br/><br/>
</h:form>
</h:body>
</html>
The code in the favorites.xhtml page is represented as a tree of UI components, as shown in Figure 1-8 .
Figure 1-8. The UI components tree of the favorites page
 
Search WWH ::




Custom Search