]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/templates/generic/gender_selection_box.tpl
as the template gender_selection_box.tpl is generic, the controller needs to be repla...
[addressbook-war.git] / web / WEB-INF / templates / generic / gender_selection_box.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:f="http://java.sun.com/jsf/core"
5         xmlns:h="http://java.sun.com/jsf/html"
6         xmlns:ui="http://java.sun.com/jsf/facelets">
7
8         <ui:fragment rendered="#{not empty targetController}">
9                 <h:selectOneMenu class="select" id="gender" value="#{targetController.gender}">
10                         <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
11                         <f:selectItems value="#{genderController.selectableGenders}" var="g" itemValue="#{g}" itemLabel="#{msg[g.messageKey]}" />
12                 </h:selectOneMenu>
13         </ui:fragment>
14
15         <ui:fragment rendered="#{empty targetController}">
16                 <h:outputText class="errors" value="#{msg.ERROR_TARGET_CONTROLLER_PARAMETER_NOT_SET}" />
17         </ui:fragment>
18 </ui:composition>