]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/WEB-INF/templates/input_fields/landline_input_fields.tpl
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / templates / input_fields / landline_input_fields.tpl
index 4ce34ff6ea60bca790db406f2f17e83cf9a6d434..536bfecc54aa2f5d3942f8ba6374dd248cba0315 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="countryPhoneCode" value="#{targetController.phoneCountry}">
                        <f:converter converterId="CountryConverter" />
@@ -20,6 +27,4 @@
                        <f:validator validatorId="PhoneNumberValidator" />
                </h:inputText>
        </ui:fragment>
-
-       <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" rendered="#{empty targetController}" />
 </ui:composition>