]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/selection_boxes/personal_title_selection_box.tpl
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:f="http://java.sun.com/jsf/core"
5         xmlns:h="http://java.sun.com/jsf/html"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
7
8         <ui:fragment rendered="#{empty targetController}">
9                 <ui:include src="/WEB-INF/templates/messages/message_box.tpl">
10                         <ui:param name="message" value="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" />
11                         <ui:param name="styleClass" value="errors" />
12                 </ui:include>
13         </ui:fragment>
14
15         <ui:fragment rendered="#{not empty targetController}">
16                 <h:selectOneMenu styleClass="select" id="personalTitle" value="#{targetController.personalTitle}" required="#{featureController.isFeatureEnabled(targetController.controllerType.concat('_personal_title'))}" requiredMessage="#{msg.FIELD_PERSONAL_TITLE_REQUIRED}">
17                         <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" noSelectionOption="true" />
18                         <f:selectItems value="#{genderController.selectableGenders}" var="personalTitle" itemValue="#{personalTitle}" itemLabel="#{msg[personalTitle.messageKey]}" />
19                 </h:selectOneMenu>
20         </ui:fragment>
21 </ui:composition>