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