]> git.mxchange.org Git - jjobs-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>
Thu, 26 May 2016 15:47:00 +0000 (17:47 +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 643b5720b77d599c21254e2548fc9eb9e8fd2fef..fa9635adeac6ced64c3d12ca3f33fe36b4554898 100644 (file)
@@ -544,3 +544,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 f052f7371c591e5387703ea1c7ff1d8795c7bedb..5b86cb9b09c3f63819012b997ed13adf5d74b7e5 100644 (file)
@@ -545,3 +545,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>