]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/selection_boxes/personal_title_selection_box.tpl
MOJARRA - Please cherry-pick:
[pizzaservice-war.git] / web / WEB-INF / templates / selection_boxes / personal_title_selection_box.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:generic="http://mxchange.org/jsf/core"
5         xmlns:f="http://java.sun.com/jsf/core"
6         xmlns:h="http://java.sun.com/jsf/html"
7         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
8
9         <generic:outputMessageBox message="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" styleClass="errors" rendered="#{empty targetController}" />
10
11         <ui:fragment rendered="#{not empty targetController}">
12                 <h:selectOneMenu styleClass="select" id="personalTitle" value="#{targetController.personalTitle}" required="#{featureController.isFeatureEnabled(targetController.controllerType.concat('_personal_title'))}" requiredMessage="#{msg.FIELD_PERSONAL_TITLE_REQUIRED}">
13                         <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" noSelectionOption="true" />
14                         <f:selectItems value="#{genderController.selectableGenders}" var="personalTitle" itemValue="#{personalTitle}" itemLabel="#{msg[personalTitle.messageKey]}" />
15                 </h:selectOneMenu>
16         </ui:fragment>
17 </ui:composition>