]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/WEB-INF/templates/input_fields/mobile_input_fields.tpl
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / templates / input_fields / mobile_input_fields.tpl
index 8307a1003d909da7c6705525b3904a655d7268dd..4ed663573c4d04b15fda6d046ed06f519413e03f 100644 (file)
@@ -5,6 +5,13 @@
        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 right_space" id="mobileProvider" value="#{targetController.mobileProvider}">
                        <f:converter converterId="MobileProviderConverter" />
@@ -16,6 +23,4 @@
                        <f:validator for="mobileNumber" validatorId="PhoneNumberValidator" />
                </h:inputText>
        </ui:fragment>
-
-       <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" rendered="#{empty targetController}" />
 </ui:composition>