]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
addded validator messages
authorRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 10:04:38 +0000 (12:04 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 10:04:38 +0000 (12:04 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/WEB-INF/templates/generic/form_personal_data.tpl

index 79f31cf57a21638788657afe7f8dc4a7eb6a8289..044d3d83192ca57e5d02722ef92e712a8873e8e6 100644 (file)
@@ -191,3 +191,5 @@ GUEST_YES_READ_TERMS_CONDITIONS_1=Ja, ich habe die
 GUEST_YES_READ_TERMS_CONDITIONS_2=gelesen und verstanden und nehme sie hiermit an.
 TERMS_CONDITIONS=Allgemeine Gesch\u00e4ftsbestimmungen
 NONE_SELECTED=k.A.
+ENTERED_HOUSE_NUMBER_INVALID=Die eingegebene Hausnummer ist ung\u00fcltig.
+ENTERED_ZIP_CODE_INVALID=Die eingegebene Postleitzahl ist ung\u00fcltig.
index 26e6fb95ff3aea1aeffa8d1074be14fa9e99021e..5db85d5866a7f77eeb075b8b551a6e851af41f49 100644 (file)
@@ -191,3 +191,5 @@ GUEST_YES_READ_TERMS_CONDITIONS_1=Yes, I have read and understand the
 GUEST_YES_READ_TERMS_CONDITIONS_2=and I accept them with this.
 TERMS_CONDITIONS=Terms & Conditions
 NONE_SELECTED=Empty
+ENTERED_HOUSE_NUMBER_INVALID=The entered house number is invalid.
+ENTERED_ZIP_CODE_INVALID=The entered ZIP code is invalid.
index 91fe1c7e282cda2d1ebb88f4c3e691fc08a895df..6b4506214a0b492f41d88c20ee09a3525b481611 100644 (file)
@@ -73,8 +73,8 @@
                                </div>
 
                                <div class="table_right">
-                                       <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{userController.houseNumber}" required="true">
-                                               <f:validateLongRange minimum="1" maximum="500" />
+                                       <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{userController.houseNumber}" required="true" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
+                                               <f:validateLongRange for="houseNumber" minimum="1" maximum="500" />
                                        </h:inputText>
                                </div>
 
@@ -87,7 +87,9 @@
                                </div>
 
                                <div class="table_right">
-                                       <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{userController.zipCode}" required="true" />
+                                       <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{userController.zipCode}" required="true" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
+                                               <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
+                                       </h:inputText>
                                </div>
 
                                <div class="clear"></div>