]> git.mxchange.org Git - jfinancials-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 18:39:46 +0000 (20:39 +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 e33bdf5b370cbf2651632d0e29c6599ded17f1ad..4babaa02f2ea94bd435073d7dd4b9644988f6ac5 100644 (file)
@@ -578,3 +578,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 95008aa494fc999d4410386d16e3b9e6a0db59d5..488eaa33f6c4c96979cf1494466d4684920d49c4 100644 (file)
@@ -576,3 +576,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>