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