]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
some cleanups + added missing i18n strings
authorRoland Häder <roland@mxchange.org>
Mon, 23 May 2016 08:47:09 +0000 (10:47 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 25 May 2016 17:37:41 +0000 (19:37 +0200)
src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/WEB-INF/templates/contact/form_contact_data.tpl

index a9b55ee04eb0d461d87960bebdcf3ccfebbcc755..3a30f335954927c0664a79f05fef0d87a0b44c23 100644 (file)
@@ -525,3 +525,4 @@ LINK_ADMIN_EXPORT_CONTACT=Daten exportieren
 LINK_ADMIN_EXPORT_CONTACT_TITLE=Kontaktdaten exportieren
 PERSONAL_DATA_BIRTHDAY=Geburtsdatum (dd.mm.jjjj):
 BIRTHDAY_PATTERN=dd.MM.yyyy
+INVALID_BIRTHDAY=Ung\u00fcltiges Geburtsdatum eingegeben.
index c458fadf28995903a3de4c7056226e2ef458e60b..ad73ae5314a24d21e2c733771a77d14e1348c709 100644 (file)
@@ -510,3 +510,4 @@ LINK_ADMIN_EXPORT_CONTACT=Export data
 LINK_ADMIN_EXPORT_CONTACT_TITLE=Export contact data
 PERSONAL_DATA_BIRTHDAY=Birthday (mm-dd-yyyy):
 BIRTHDAY_PATTERN=MM-dd-yyyy
+INVALID_BIRTHDAY=Wrong birthday entered.
index 1e826c36afc01ff69bb1a2e5ce7a83d82b2b64f0..09f0f4af11b8bc516fd463956cf74b1dcbcd0ad9 100644 (file)
@@ -35,7 +35,7 @@
 
                                <div class="table_right">
                                        <h:inputText styleClass="input" id="firstName" size="10" maxlength="255" value="#{contactController.firstName}" required="true">
-                                               <f:validator for="firstName" validatorId="NameValidator" />
+                                               <f:validator validatorId="NameValidator" />
                                        </h:inputText>
                                </div>
 
@@ -63,7 +63,7 @@
 
                                <div class="table_right">
                                        <h:inputText styleClass="input" id="street" size="20" maxlength="255" value="#{contactController.street}" required="true">
-                                               <f:validator for="street" validatorId="NameValidator" />
+                                               <f:validator validatorId="NameValidator" />
                                        </h:inputText>
                                </div>
 
@@ -91,7 +91,7 @@
 
                                <div class="table_right">
                                        <h:inputText styleClass="input" id="zipCode" size="5" maxlength="6" value="#{contactController.zipCode}" required="true" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
-                                               <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
+                                               <f:validateLongRange minimum="1" maximum="99999" />
                                        </h:inputText>
                                </div>
 
 
                                <div class="table_right">
                                        <h:inputText styleClass="input" id="city" size="10" maxlength="255" value="#{contactController.city}" required="true">
-                                               <f:validator for="city" validatorId="NameValidator" />
+                                               <f:validator validatorId="NameValidator" />
                                        </h:inputText>
                                </div>
 
                                </div>
 
                                <div class="table_right">
-                                       <h:inputText styleClass="input" id="birthday" value="#{contactController.birthday}" required="true" size="10" validator="BirthdayValidator">
-                                               <f:convertDateTime for="birthday" pattern="#{msg.BIRTHDAY_PATTERN}" />
+                                       <h:inputText styleClass="input" id="birthday" value="#{contactController.birthday}" required="true" size="10" converterMessage="#{msg.INVALID_BIRTHDAY}">
+                                               <f:convertDateTime pattern="#{msg.BIRTHDAY_PATTERN}" />
                                        </h:inputText>
                                </div>
 
                                <div class="clear"></div>
                        </div>
 
-                       <h:message for="birthday" errorClass="errors" fatalClass="errors" warnClass="errors" showDetail="false" />
+                       <h:message for="birthday" errorClass="errors" fatalClass="errors" warnClass="errors" />
 
                        <div class="table_row">
                                <div class="table_left">
                                        </h:selectOneMenu>
 
                                        <h:inputText styleClass="input" id="phoneAreaCode" size="5" maxlength="10" value="#{contactController.phoneAreaCode}">
-                                               <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
+                                               <f:validator validatorId="PhoneNumberValidator" />
                                        </h:inputText>
 
                                        <h:inputText styleClass="input" id="phoneNumber" size="10" maxlength="20" value="#{contactController.phoneNumber}">
-                                               <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
+                                               <f:validator validatorId="PhoneNumberValidator" />
                                        </h:inputText>
                                </div>