]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
renamed converter to make them more clear (in JSF page)
authorRoland Häder <roland@mxchange.org>
Mon, 2 May 2016 10:04:11 +0000 (12:04 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 2 May 2016 19:29:37 +0000 (21:29 +0200)
Signed-off-by: Roland Häder <roland@haeder.net>
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/pizzaapplication/converter/country/PizzaCountryConverter.java
web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl
web/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl
web/WEB-INF/templates/generic/form_personal_data.tpl

index 15db8b6ea6f43c2bf84e93d56bd3267a16d0950e..0387a1c73853d66453282ff0a30778631b94ffaa 100644 (file)
@@ -36,7 +36,7 @@ import org.mxchange.jcountry.data.CountrySingletonBeanRemote;
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-@FacesConverter (value = "country")
+@FacesConverter (value = "CountryConverter")
 public class PizzaCountryConverter implements Converter {
 
        /**
index 8baf888e7133f6185195c66bbb1f0038ae1e9465..b1c484b1ee88e203fafccdde264b4f2f04a5a694 100644 (file)
                        <legend title="#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND_TITLE}">#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND}</legend>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel for="gender" value="#{msg.ADMIN_PERSONAL_DATA_GENDER}" />
                                </div>
 
-                               <div class="table_right_medium">
+                               <div class="table_right">
                                        <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl">
                                                <ui:param name="targetController" value="#{adminContactController}" />
                                        </ui:include>
                        </div>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel for="firstName" value="#{msg.ADMIN_PERSONAL_DATA_FIRST_NAME}" />
                                </div>
 
-                               <div class="table_right_medium">
-                                       <h:inputText class="input" id="firstName" size="10" maxlength="255" value="#{adminContactController.firstName}" />
+                               <div class="table_right">
+                                       <h:inputText class="input" id="firstName" size="10" maxlength="255" value="#{adminContactController.firstName}" required="true">
+                                               <f:validator for="firstName" validatorId="NameValidator" />
+                                       </h:inputText>
                                </div>
 
                                <div class="clear"></div>
                        </div>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel for="familyName" value="#{msg.ADMIN_PERSONAL_DATA_FAMILY_NAME}" />
                                </div>
 
-                               <div class="table_right_medium">
-                                       <h:inputText class="input" id="familyName" size="10" maxlength="255" value="#{adminContactController.familyName}" />
+                               <div class="table_right">
+                                       <h:inputText class="input" id="familyName" size="10" maxlength="255" value="#{adminContactController.familyName}" required="true">
+                                               <f:validator for="familyName" validatorId="NameValidator" />
+                                       </h:inputText>
                                </div>
 
                                <div class="clear"></div>
                        </div>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel for="street" value="#{msg.ADMIN_PERSONAL_DATA_STREET}" />
                                </div>
 
-                               <div class="table_right_medium">
+                               <div class="table_right">
                                        <h:inputText class="input" id="street" size="20" maxlength="255" value="#{adminContactController.street}" />
                                </div>
 
                        </div>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel for="houseNumber" value="#{msg.ADMIN_PERSONAL_DATA_HOUSE_NUMBER}" />
                                </div>
 
-                               <div class="table_right_medium">
+                               <div class="table_right">
                                        <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{adminContactController.houseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
                                                <f:validateLongRange for="houseNumber" minimum="1" maximum="500" />
                                        </h:inputText>
                        </div>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel for="zipCode" value="#{msg.ADMIN_PERSONAL_DATA_ZIP_CODE}" />
                                </div>
 
-                               <div class="table_right_medium">
+                               <div class="table_right">
                                        <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{adminContactController.zipCode}" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
                                                <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
                                        </h:inputText>
                        </div>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel for="city" value="#{msg.ADMIN_PERSONAL_DATA_CITY}" />
                                </div>
 
-                               <div class="table_right_medium">
+                               <div class="table_right">
                                        <h:inputText class="input" id="city" size="10" maxlength="255" value="#{adminContactController.city}" />
                                </div>
 
                        </div>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel for="country" value="#{msg.ADMIN_PERSONAL_DATA_COUNTRY_CODE}" />
                                </div>
 
-                               <div class="table_right_medium">
-                                       <h:selectOneMenu class="select" id="country" value="#{adminContactController.country}" converter="country">
+                               <div class="table_right">
+                                       <h:selectOneMenu class="select" id="country" value="#{adminContactController.country}" converter="CountryConverter">
                                                <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
                                                <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
                                        </h:selectOneMenu>
                        </div>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel value="#{msg.ADMIN_PERSONAL_DATA_PHONE_NUMBER}" />
                                </div>
 
-                               <div class="table_right_medium">
-                                       <h:selectOneMenu class="select" id="countryPhoneCode" value="#{adminContactController.phoneCountry}" converter="country">
+                               <div class="table_right">
+                                       <h:selectOneMenu class="select" id="countryPhoneCode" value="#{adminContactController.phoneCountry}" converter="CountryConverter">
                                                <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
                                                <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
                                        </h:selectOneMenu>
                        </div>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel for="faxNumber" value="#{msg.ADMIN_PERSONAL_DATA_FAX_NUMBER}" />
                                </div>
 
-                               <div class="table_right_medium">
-                                       <h:selectOneMenu class="select" id="faxCountryCode" value="#{adminContactController.faxCountry}" converter="country">
+                               <div class="table_right">
+                                       <h:selectOneMenu class="select" id="faxCountryCode" value="#{adminContactController.faxCountry}" converter="CountryConverter">
                                                <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
                                                <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
                                        </h:selectOneMenu>
                        </div>
 
                        <div class="table_row">
-                               <div class="table_left_medium">
+                               <div class="table_left">
                                        <h:outputLabel for="cellphoneNumber" value="#{msg.ADMIN_PERSONAL_DATA_CELLPHONE_NUMBER}" />
                                </div>
 
-                               <div class="table_right_medium">
+                               <div class="table_right">
                                        <ui:include src="/WEB-INF/templates/generic/mobile_selection_box.tpl">
                                                <ui:param name="targetController" value="#{adminContactController}" />
                                        </ui:include>
index 086ab151e08148f2401f2d6b31b2f5726d1e2000..5858d1b13738fed0b1e53ffd7349ef2d2d4b84e4 100644 (file)
@@ -59,7 +59,7 @@
                                </div>
 
                                <div class="table_right_medium">
-                                       <h:selectOneMenu class="select" id="providerCountry" value="#{adminMobileProviderController.providerCountry}" converter="country">
+                                       <h:selectOneMenu class="select" id="providerCountry" value="#{adminMobileProviderController.providerCountry}" converter="CountryConverter">
                                                <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
                                        </h:selectOneMenu>
                                </div>
index 39ca0137b8ccb17f9a580596314fc3c21abfca18..cd04d70a4d16399f68deec506ff4b7158624bbc0 100644 (file)
                                </div>
 
                                <div class="table_right">
-                                       <h:selectOneMenu class="select" id="country" value="#{contactController.country}" converter="country">
+                                       <h:selectOneMenu class="select" id="country" value="#{contactController.country}" converter="CountryConverter">
                                                <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
                                                <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
                                        </h:selectOneMenu>
                                </div>
 
                                <div class="table_right">
-                                       <h:selectOneMenu class="select" id="countryPhoneCode" value="#{contactController.phoneCountry}" converter="country">
+                                       <h:selectOneMenu class="select" id="countryPhoneCode" value="#{contactController.phoneCountry}" converter="CountryConverter">
                                                <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
                                                <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
                                        </h:selectOneMenu>
                                </div>
 
                                <div class="table_right">
-                                       <h:selectOneMenu class="select" id="faxCountryCode" value="#{contactController.faxCountry}" converter="country">
+                                       <h:selectOneMenu class="select" id="faxCountryCode" value="#{contactController.faxCountry}" converter="CountryConverter">
                                                <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
                                                <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
                                        </h:selectOneMenu>