]> git.mxchange.org Git - addressbook-war.git/commitdiff
+ is not for adding strings, it is addition (math)
authorRoland Häder <roland@mxchange.org>
Thu, 20 Apr 2017 19:03:38 +0000 (21:03 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 20 Apr 2017 19:03:38 +0000 (21:03 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
web/WEB-INF/templates/generic/gender_selection_box.tpl

index dfa9efcb4f43000e18e5e5e0482033368c01b13c..849dea0c71724ce7de9ac3b48113029bee1988f4 100644 (file)
@@ -5,12 +5,17 @@
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
 
+       <ui:fragment rendered="#{empty targetController}">
+               <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+                       <ui:param name="message" value="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" />
+                       <ui:param name="styleClass" value="errors" />
+               </ui:include>
+       </ui:fragment>
+
        <ui:fragment rendered="#{not empty targetController}">
-               <h:selectOneMenu styleClass="select" id="gender" value="#{targetController.gender}" required="#{featureController.isFeatureEnabled(targetController.controllerType + '_gender')}" requiredMessage="#{msg.FIELD_GENDER_REQUIRED}">
+               <h:selectOneMenu styleClass="select" id="gender" value="#{targetController.gender}" required="#{featureController.isFeatureEnabled(targetController.controllerType.concat('_gender'))}" requiredMessage="#{msg.FIELD_GENDER_REQUIRED}">
                        <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" noSelectionOption="true" />
                        <f:selectItems value="#{genderController.selectableGenders}" var="gender" itemValue="#{gender}" itemLabel="#{msg[gender.messageKey]}" />
                </h:selectOneMenu>
        </ui:fragment>
-
-       <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" rendered="#{empty targetController}" />
 </ui:composition>