xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:p="http://primefaces.org/ui">
+ xmlns:p="http://primefaces.org/ui"
+ >
<h:panelGroup styleClass="para notice" layout="block">
<h:outputText value="#{msg.ADMIN_COUNTRY_DATA_MINIMUM_NOTICE}" />
</h:panelGroup>
<h:panelGroup styleClass="para" layout="block">
- <fieldset class="fieldset" id="country_data">
+ <fieldset class="fieldset">
<legend title="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND_TITLE}">
<h:outputText value="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND}" />
</legend>
</div>
<div class="table-right-medium">
- <p:inputText styleClass="input" id="countryAbroadDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryAbroadDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_ABORAD_DIAL_PREFIX_REQUIRED}">
+ <p:inputText
+ id="countryAbroadDialPrefix"
+ size="2"
+ maxlength="10"
+ value="#{adminCountryController.countryAbroadDialPrefix}"
+ required="true"
+ requiredMessage="#{msg.ADMIN_COUNTRY_ABROAD_DIAL_PREFIX_REQUIRED}"
+ >
<f:validator validatorId="AbroadDialValidator" />
</p:inputText>
</div>
</div>
<div class="table-right-medium">
- <p:inputText styleClass="input" id="countryCode" size="2" maxlength="2" value="#{adminCountryController.countryCode}" required="true">
+ <p:inputText
+ id="countryCode"
+ size="2"
+ maxlength="2"
+ value="#{adminCountryController.countryCode}"
+ required="true"
+ >
<f:validateRegex for="countryCode" pattern="[A-Z]{2}" />
</p:inputText>
</div>
<div class="table-right-medium">
- <p:inputText styleClass="input" id="countryI18nKey" size="20" maxlength="100" value="#{adminCountryController.countryI18nKey}" required="true">
+ <p:inputText
+ id="countryI18nKey"
+ maxlength="100"
+ value="#{adminCountryController.countryI18nKey}"
+ required="true"
+ requiredMessage="#{msg.ADMIN_COUNTRY_I18N_KEY_REQUIRED}"
+ >
<f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
</p:inputText>
</div>
</div>
<div class="table-right-medium">
- <h:selectOneListbox required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
+ <h:selectOneListbox
+ required="true"
+ id="countryIsLocalPrefixRequired"
+ value="#{adminCountryController.countryIsLocalPrefixRequired}"
+ size="1"
+ >
<f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
<f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
</h:selectOneListbox>
</div>
<div class="table-right-medium">
- <p:inputText styleClass="input" id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}">
- <f:validateLongRange for="countryExternalDialPrefix" minimum="0" maximum="99" />
+ <p:inputText
+ id="countryExternalDialPrefix"
+ size="2"
+ maxlength="10"
+ value="#{adminCountryController.countryExternalDialPrefix}"
+ required="true"
+ requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}"
+ >
+ <f:validateLongRange minimum="0" maximum="99" />
</p:inputText>
</div>
</h:panelGroup>
</div>
<div class="table-right-medium">
- <p:inputText styleClass="input" id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}">
- <f:validateLongRange for="countryPhoneCode" minimum="0" maximum="99" />
+ <p:inputText
+ id="countryPhoneCode"
+ size="2"
+ maxlength="6"
+ value="#{adminCountryController.countryPhoneCode}"
+ required="true"
+ requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}"
+ >
+ <f:validateLongRange minimum="0" maximum="999" />
</p:inputText>
<h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />