]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/input_fields/landline_input_fields.tpl
Continued with templates: (please cherry-pick)
[jjobs-war.git] / web / WEB-INF / templates / input_fields / landline_input_fields.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="#{not empty targetController}">
9                 <h:selectOneMenu styleClass="select right_space" id="countryPhoneCode" value="#{targetController.phoneCountry}">
10                         <f:converter converterId="CountryConverter" />
11                         <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
12                         <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
13                 </h:selectOneMenu>
14
15                 <h:inputText styleClass="input right_space" id="landLineAreaCode" size="5" maxlength="10" value="#{targetController.phoneAreaCode}">
16                         <f:validator validatorId="PhoneNumberValidator" />
17                 </h:inputText>
18
19                 <h:inputText styleClass="input" id="landLineNumber" size="10" maxlength="20" value="#{targetController.phoneNumber}">
20                         <f:validator validatorId="PhoneNumberValidator" />
21                 </h:inputText>
22         </ui:fragment>
23
24         <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" rendered="#{empty targetController}" />
25 </ui:composition>