]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
gender (salutation) is also a required field
authorRoland Häder <roland@mxchange.org>
Tue, 24 May 2016 10:59:05 +0000 (12:59 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 25 May 2016 17:58:40 +0000 (19:58 +0200)
src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/WEB-INF/templates/generic/gender_selection_box.tpl

index 3337b2c1d403623d1e4a85a7afc32115cb2b1c70..9318cc33ac31f94c65d0e3ffe1829717ad27cee4 100644 (file)
@@ -550,3 +550,4 @@ GUEST_CONTACT_DATA_HOUSE_NUMBER_REQUIRED=Bitte geben Sie die Hausnummer ohne Zus
 GUEST_CONTACT_DATA_ZIP_CODE_REQUIRED=Bitte geben Sie Ihre Postleitzahl ein.
 GUEST_CONTACT_DATA_CITY_REQUIRED=Bitte geben Sie Ihren Wohnort ein.
 GUEST_CONTACT_DATA_BIRTHDAY_REQUIRED=Bitte geben Sie Ihr Geburtsdatum ein.
+FIELD_GENDER_REQUIRED=Bitte w\u00e4hlen Sie eine Anrede aus.
index ae59459f5bb94adb286070db4eee333d3c4f2479..15966315208648fcde4fca146a9affc16ed66755 100644 (file)
@@ -535,3 +535,4 @@ GUEST_CONTACT_DATA_HOUSE_NUMBER_REQUIRED=Please enter your house number without
 GUEST_CONTACT_DATA_ZIP_CODE_REQUIRED=Please enter your ZIP code.
 GUEST_CONTACT_DATA_CITY_REQUIRED=Please enter your city.
 GUEST_CONTACT_DATA_BIRTHDAY_REQUIRED=Please enter your birthday.
+FIELD_GENDER_REQUIRED=Please select a gender.
index 15822e25787d8812c9d7884074399b89f2a1366a..5ba192aa04adf4ec5a176c47b4079914c32e905b 100644 (file)
@@ -6,9 +6,9 @@
        xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
 
        <ui:fragment rendered="#{not empty targetController}">
-               <h:selectOneMenu styleClass="select" id="gender" value="#{targetController.gender}">
-                       <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
-                       <f:selectItems value="#{genderController.selectableGenders}" var="g" itemValue="#{g}" itemLabel="#{msg[g.messageKey]}" />
+               <h:selectOneMenu styleClass="select" id="gender" value="#{targetController.gender}" required="true" requiredMessage="#{msg.FIELD_GENDER_REQUIRED}">
+                       <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" noSelectionOption="true" />
+                       <f:selectItems value="#{genderController.selectableGenders}" var="gender" itemValue="#{gender}" itemLabel="#{msg[gender.messageKey]}" />
                </h:selectOneMenu>
        </ui:fragment>