]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sun, 2 Oct 2022 17:42:56 +0000 (19:42 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 2 Oct 2022 17:44:17 +0000 (19:44 +0200)
- these checks on if registered or not or provided or not makes here no sense
  and has caused forms not accepting email addresses
- renamed template
- added country Hungary

src/java/org/mxchange/jjobs/validator/emailaddress/basicdata/JobsBasicDataEmailAddressValidator.java
src/java/org/mxchange/jjobs/validator/emailaddress/branchoffice/JobsBranchOfficeEmailAddressValidator.java
src/java/org/mxchange/jjobs/validator/emailaddress/employee/JobsEmployeeEmailAddressValidator.java
src/java/org/mxchange/jjobs/validator/emailaddress/headquarter/JobsHeadquarterEmailAddressValidator.java
src/java/org/mxchange/localization/generic_de_DE.properties
src/java/org/mxchange/localization/generic_en_US.properties
web/WEB-INF/templates/admin/headquarter/admin_form_headquarter.tpl [deleted file]
web/WEB-INF/templates/admin/headquarter/admin_form_headquarter_data.tpl [new file with mode: 0644]
web/admin/headquarter/admin_headquarter_list.xhtml

index 0967f56d9a920cf4a3c1bc6faba4ca09af53125a..e594288c132f928af98220bbf7d3d1906e2bd3e5 100644 (file)
@@ -109,16 +109,10 @@ public class JobsBasicDataEmailAddressValidator extends BaseStringValidator {
                final Boolean isRegistered = BASIC_DATA_LIST_CONTROLLER.isEmailAddressRegistered(emailAddress);
 
                // Is the email address already registered?
-               if ((!clientId.endsWith("companyEmailAddress")) && (isRegistered)) { //NOI18N
+               if ((clientId.endsWith("companyEmailAddress")) && isRegistered) { //NOI18N
                        // Generate message
                        final String message = MessageFormat.format("Email address {0} is already registered.", emailAddress); //NOI18N
 
-                       // No, then abort here
-                       throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_INFO, message, message));
-               } else if ((clientId.endsWith("companyEmailAddress")) && (!isRegistered)) { //NOI18N
-                       // Generate message
-                       final String message = MessageFormat.format("Email address {0} is not registered.", emailAddress); //NOI18N
-
                        // No, then abort here
                        throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_INFO, message, message));
                }
index 79522ecd603e62fd825bec59ef92897e7ad72e82..53b8dadf415330935a30f146748b7caea61351cb 100644 (file)
@@ -106,16 +106,10 @@ public class JobsBranchOfficeEmailAddressValidator extends BaseStringValidator {
                final Boolean isRegistered = BRANCH_OFFICE_LIST_CONTROLLER.isEmailAddressRegistered(emailAddress);
 
                // Is the email address already registered?
-               if ((!clientId.endsWith("branchEmailAddress")) && (isRegistered)) { //NOI18N
+               if ((clientId.endsWith("branchEmailAddress")) && isRegistered) { //NOI18N
                        // Generate message
                        final String message = MessageFormat.format("Email address {0} is already registered.", emailAddress); //NOI18N
 
-                       // No, then abort here
-                       throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_INFO, message, message));
-               } else if ((clientId.endsWith("branchEmailAddress")) && (!isRegistered)) { //NOI18N
-                       // Generate message
-                       final String message = MessageFormat.format("Email address {0} is not registered.", emailAddress); //NOI18N
-
                        // No, then abort here
                        throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_INFO, message, message));
                }
index fbe1ddbc9ca745acd97e95637c74845bef24575b..e2706e251a01a49273fca812d26f56166d6546af 100644 (file)
@@ -109,16 +109,10 @@ public class JobsEmployeeEmailAddressValidator extends BaseStringValidator {
                final Boolean isRegistered = EMPLOYEE_LIST_CONTROLLER.isEmailAddressRegistered(emailAddress);
 
                // Is the email address already registered?
-               if ((!clientId.endsWith("employeeEmailAddress")) && (isRegistered)) { //NOI18N
+               if ((clientId.endsWith("employeeEmailAddress")) && isRegistered) { //NOI18N
                        // Generate message
                        final String message = MessageFormat.format("Email address {0} is already registered.", emailAddress); //NOI18N
 
-                       // No, then abort here
-                       throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_INFO, message, message));
-               } else if ((clientId.endsWith("employeeEmailAddress")) && (!isRegistered)) { //NOI18N
-                       // Generate message
-                       final String message = MessageFormat.format("Email address {0} is not registered.", emailAddress); //NOI18N
-
                        // No, then abort here
                        throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_INFO, message, message));
                }
index a9c5ef781f2da0961a796b4b9dbe122f4a7ccf07..aca5ed5e6f7e7c10534f25e0b3effa7823f68154 100644 (file)
@@ -109,16 +109,10 @@ public class JobsHeadquarterEmailAddressValidator extends BaseStringValidator {
                final Boolean isRegistered = HEADQUARTER_LIST_CONTROLLER.isEmailAddressRegistered(emailAddress);
 
                // Is the email address already registered?
-               if ((!clientId.endsWith("headquarterEmailAddress")) && (isRegistered)) { //NOI18N
+               if ((clientId.endsWith("headquarterEmailAddress")) && isRegistered) { //NOI18N
                        // Generate message
                        final String message = MessageFormat.format("Email address {0} is already registered.", emailAddress); //NOI18N
 
-                       // No, then abort here
-                       throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_INFO, message, message));
-               } else if ((clientId.endsWith("headquarterEmailAddress")) && (!isRegistered)) { //NOI18N
-                       // Generate message
-                       final String message = MessageFormat.format("Email address {0} is not registered.", emailAddress); //NOI18N
-
                        // No, then abort here
                        throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_INFO, message, message));
                }
index 5b754648efb4833f4d850ae69b394210a2e3fc57..1c61527574b69818d3cfed6bf325b007a45a14cb 100644 (file)
@@ -132,6 +132,7 @@ COUNTRY_DANMARK=D\u00e4nemark
 COUNTRY_FRANCE=Frankreich
 COUNTRY_GERMANY=Deutschland
 COUNTRY_GREECE=Griechenland
+COUNTRY_HUNGARY=Ungarn
 COUNTRY_ITALIA=Italien
 COUNTRY_NETHERLANDS=Niederlande
 COUNTRY_PHILIPPINES=Philippinen
index 9c8323ccea2a15a22dd13cfbc00d689c101ba98f..60610585b77e22649f082fc6334cb3dba63336a6 100644 (file)
@@ -132,6 +132,7 @@ COUNTRY_DANMARK=Danmark
 COUNTRY_FRANCE=France
 COUNTRY_GERMANY=Germany
 COUNTRY_GREECE=Greece
+COUNTRY_HUNGARY=Hungary
 COUNTRY_ITALIA=Italia
 COUNTRY_NETHERLANDS=Netherlands
 COUNTRY_PHILIPPINES=Philippines
diff --git a/web/WEB-INF/templates/admin/headquarter/admin_form_headquarter.tpl b/web/WEB-INF/templates/admin/headquarter/admin_form_headquarter.tpl
deleted file mode 100644 (file)
index 61ddb0b..0000000
+++ /dev/null
@@ -1,144 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
-@TODO: title="#{msg.ADMIN_HEADQUARTER_LEGEND_TITLE}"
--->
-<ui:composition
-       xmlns="http://www.w3.org/1999/xhtml"
-       xmlns:core="http://mxchange.org/jsf/core/widgets"
-       xmlns:validator="http://mxchange.org/jsf/core/validators"
-       xmlns:f="http://xmlns.jcp.org/jsf/core"
-       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
-       xmlns:p="http://primefaces.org/ui"
-       >
-
-       <p:fieldset legend="#{msg.ADMIN_HEADQUARTER_LEGEND}">
-               <p:panelGrid
-                       layout="grid"
-                       columns="2"
-                       columnClasses="ui-grid-col-4,ui-grid-col-8"
-                       styleClass="ui-noborder"
-                       >
-                       <p:outputLabel for="headquarterCompanyName" value="#{msg.ADMIN_HEADQUARTER_COMPANY_NAME}" />
-                       <p:inputText
-                               id="headquarterCompanyName"
-                               value="#{adminHeadquarterActionController.headquarterCompanyName}"
-                               size="30"
-                               maxlength="200"
-                               required="true"
-                               requiredMessage="#{msg.ADMIN_HEADQUARTER_COMPANY_NAME_REQUIRED}"
-                               >
-                               <f:validator validatorId="HeadquarterCompanyNameValidator" />
-                               <f:attribute name="checkExisting" value="false" />
-                       </p:inputText>
-
-                       <p:outputLabel for="headquarterContactEmployee" value="#{msg.ADMIN_ASSIGN_HEADQUARTER_CONTACT_EMPLOYEE}" />
-                       <p:selectOneMenu
-                               id="headquarterContactEmployee"
-                               value="#{adminHeadquarterActionController.headquarterContactEmployee}"
-                               filter="true"
-                               filterMatchMode="contains"
-                               >
-
-                               <f:converter converterId="ContactConverter" />
-
-                               <f:selectItem
-                                       itemValue="#{null}"
-                                       itemLabel="#{msg.NONE_SELECTED}"
-                                       />
-
-                               <f:selectItems
-                                       value="#{contactListController.allContacts}"
-                                       var="contact"
-                                       itemValue="#{contact}"
-                                       itemLabel="#{beanHelper.renderContact(contact)}"
-                                       />
-                       </p:selectOneMenu>
-
-                       <p:outputLabel for="headquarterUserOwner" value="#{msg.ADMIN_ASSIGN_HEADQUARTER_USER_OWNER}" />
-                       <p:selectOneMenu
-                               id="headquarterUserOwner"
-                               value="#{adminHeadquarterActionController.headquarterUserOwner}"
-                               filter="true"
-                               filterMatchMode="contains"
-                               >
-
-                               <f:converter converterId="UserConverter" />
-
-                               <f:selectItem
-                                       itemValue="#{null}"
-                                       itemLabel="#{msg.NONE_SELECTED}"
-                                       />
-
-                               <f:selectItems
-                                       value="#{userListController.allUsers}"
-                                       var="headquarterUserOwner"
-                                       itemValue="#{headquarterUserOwner}"
-                                       itemLabel="#{beanHelper.renderContact(headquarterUserOwner.userContact)} (#{headquarterUserOwner.userName})"
-                                       />
-                       </p:selectOneMenu>
-
-                       <p:outputLabel for="headquarterEmailAddress" value="#{msg.ADMIN_ENTER_HEADQUARTER_EMAIL_ADDRESS}" />
-                       <p:inputText
-                               id="headquarterEmailAddress"
-                               size="40"
-                               maxlength="255"
-                               value="#{adminHeadquarterActionController.headquarterEmailAddress}"
-                               validatorMessage="#{msg.ENTERED_EMAIL_ADDRESS_IS_INVALID}"
-                               >
-                               <validator:headquarterEmailAddressValidator />
-                       </p:inputText>
-
-                       <p:outputLabel for="landLineCountry" value="#{msg.ADMIN_ENTER_HEADQUARTER_LAND_LINE_NUMBER}" />
-                       <core:inputLandLineNumberPanelGrid targetController="#{adminHeadquarterActionController}" />
-
-                       <p:outputLabel for="faxCountry" value="#{msg.ADMIN_ENTER_HEADQUARTER_FAX_NUMBER}" />
-                       <core:inputFaxNumberPanelGrid targetController="#{adminHeadquarterActionController}" />
-               </p:panelGrid>
-       </p:fieldset>
-
-       <p:fieldset legend="#{msg.ADMIN_HEADQUARTER_ADDRESS_LEGEND}">
-               <p:panelGrid
-                       layout="grid"
-                       columns="2"
-                       columnClasses="ui-grid-col-4,ui-grid-col-8"
-                       styleClass="ui-noborder"
-                       >
-                       <p:outputLabel for="headquarterStreet" value="#{msg.ADMIN_DATA_STREET_NAME}" />
-                       <p:inputText id="headquarterStreet" size="20" maxlength="255" value="#{adminHeadquarterActionController.headquarterStreet}" required="true" requiredMessage="#{msg.ADMIN_HEADQUARTER_STREET_NAME_REQUIRED}" />
-
-                       <p:outputLabel for="headquarterHouseNumber" value="#{msg.ADMIN_DATA_HOUSE_NUMBER}" />
-                       <p:inputText id="headquarterHouseNumber" size="3" maxlength="5" value="#{adminHeadquarterActionController.headquarterHouseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}" required="true" requiredMessage="#{msg.ADMIN_HEADQUARTER_HOUSE_NUMBER_REQUIRED}">
-                               <f:validateLongRange minimum="1" maximum="500" />
-                       </p:inputText>
-
-                       <p:outputLabel for="headquarterHouseNumberExtension" value="#{msg.ADMIN_DATA_HOUSE_NUMBER_EXTENSION}" />
-                       <p:inputText id="headquarterHouseNumberExtension" size="1" maxlength="255" value="#{adminHeadquarterActionController.headquarterHouseNumberExtension}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}" />
-
-                       <p:outputLabel for="headquarterLastHouseNumber" value="#{msg.ADMIN_DATA_LAST_HOUSE_NUMBER}" />
-                       <p:inputText id="headquarterLastHouseNumber" size="3" maxlength="5" value="#{adminHeadquarterActionController.headquarterLastHouseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
-                               <f:validateLongRange minimum="1" maximum="500" />
-                       </p:inputText>
-
-                       <p:outputLabel for="headquarterStore" value="#{msg.ADMIN_ENTER_DATA_STORE}" />
-                       <p:inputText id="headquarterStore" size="3" maxlength="5" value="#{adminHeadquarterActionController.headquarterStore}" validatorMessage="#{msg.ENTERED_STORE_INVALID}">
-                               <f:validateLongRange minimum="-5" maximum="200" />
-                       </p:inputText>
-
-                       <p:outputLabel for="headquarterSuiteNumber" value="#{msg.ADMIN_ENTER_DATA_SUITE_NUMBER}" />
-                       <p:inputText id="headquarterSuiteNumber" size="3" maxlength="5" value="#{adminHeadquarterActionController.headquarterSuiteNumber}" validatorMessage="#{msg.ENTERED_SUITE_NUMBER_INVALID}">
-                               <f:validateLongRange minimum="1" maximum="500" />
-                       </p:inputText>
-
-                       <p:outputLabel for="headquarterZipCode" value="#{msg.DATA_ZIP_CODE}" />
-                       <p:inputText id="headquarterZipCode" size="5" maxlength="6" value="#{adminHeadquarterActionController.headquarterZipCode}" required="true" requiredMessage="#{msg.ADMIN_HEADQUARTER_ZIP_CODE_REQUIRED}">
-                               <f:validateLongRange minimum="1" maximum="99999" />
-                       </p:inputText>
-
-                       <p:outputLabel for="headquarterCity" value="#{msg.ADMIN_DATA_CITY}" />
-                       <p:inputText id="headquarterCity" size="20" maxlength="255" value="#{adminHeadquarterActionController.headquarterCity}" required="true" requiredMessage="#{msg.ADMIN_HEADQUARTER_CITY_REQUIRED}" />
-
-                       <p:outputLabel for="headquarterCountry" value="#{msg.ADMIN_SELECT_COUNTRY}" />
-                       <core:outputCountrySelector id="headquarterCountry" value="#{adminHeadquarterActionController.headquarterCountry}" required="true" requiredMessage="#{msg.ADMIN_HEADQUARTER_COUNTRY_REQUIRED}" />
-               </p:panelGrid>
-       </p:fieldset>
-</ui:composition>
diff --git a/web/WEB-INF/templates/admin/headquarter/admin_form_headquarter_data.tpl b/web/WEB-INF/templates/admin/headquarter/admin_form_headquarter_data.tpl
new file mode 100644 (file)
index 0000000..61ddb0b
--- /dev/null
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+@TODO: title="#{msg.ADMIN_HEADQUARTER_LEGEND_TITLE}"
+-->
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:core="http://mxchange.org/jsf/core/widgets"
+       xmlns:validator="http://mxchange.org/jsf/core/validators"
+       xmlns:f="http://xmlns.jcp.org/jsf/core"
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+       xmlns:p="http://primefaces.org/ui"
+       >
+
+       <p:fieldset legend="#{msg.ADMIN_HEADQUARTER_LEGEND}">
+               <p:panelGrid
+                       layout="grid"
+                       columns="2"
+                       columnClasses="ui-grid-col-4,ui-grid-col-8"
+                       styleClass="ui-noborder"
+                       >
+                       <p:outputLabel for="headquarterCompanyName" value="#{msg.ADMIN_HEADQUARTER_COMPANY_NAME}" />
+                       <p:inputText
+                               id="headquarterCompanyName"
+                               value="#{adminHeadquarterActionController.headquarterCompanyName}"
+                               size="30"
+                               maxlength="200"
+                               required="true"
+                               requiredMessage="#{msg.ADMIN_HEADQUARTER_COMPANY_NAME_REQUIRED}"
+                               >
+                               <f:validator validatorId="HeadquarterCompanyNameValidator" />
+                               <f:attribute name="checkExisting" value="false" />
+                       </p:inputText>
+
+                       <p:outputLabel for="headquarterContactEmployee" value="#{msg.ADMIN_ASSIGN_HEADQUARTER_CONTACT_EMPLOYEE}" />
+                       <p:selectOneMenu
+                               id="headquarterContactEmployee"
+                               value="#{adminHeadquarterActionController.headquarterContactEmployee}"
+                               filter="true"
+                               filterMatchMode="contains"
+                               >
+
+                               <f:converter converterId="ContactConverter" />
+
+                               <f:selectItem
+                                       itemValue="#{null}"
+                                       itemLabel="#{msg.NONE_SELECTED}"
+                                       />
+
+                               <f:selectItems
+                                       value="#{contactListController.allContacts}"
+                                       var="contact"
+                                       itemValue="#{contact}"
+                                       itemLabel="#{beanHelper.renderContact(contact)}"
+                                       />
+                       </p:selectOneMenu>
+
+                       <p:outputLabel for="headquarterUserOwner" value="#{msg.ADMIN_ASSIGN_HEADQUARTER_USER_OWNER}" />
+                       <p:selectOneMenu
+                               id="headquarterUserOwner"
+                               value="#{adminHeadquarterActionController.headquarterUserOwner}"
+                               filter="true"
+                               filterMatchMode="contains"
+                               >
+
+                               <f:converter converterId="UserConverter" />
+
+                               <f:selectItem
+                                       itemValue="#{null}"
+                                       itemLabel="#{msg.NONE_SELECTED}"
+                                       />
+
+                               <f:selectItems
+                                       value="#{userListController.allUsers}"
+                                       var="headquarterUserOwner"
+                                       itemValue="#{headquarterUserOwner}"
+                                       itemLabel="#{beanHelper.renderContact(headquarterUserOwner.userContact)} (#{headquarterUserOwner.userName})"
+                                       />
+                       </p:selectOneMenu>
+
+                       <p:outputLabel for="headquarterEmailAddress" value="#{msg.ADMIN_ENTER_HEADQUARTER_EMAIL_ADDRESS}" />
+                       <p:inputText
+                               id="headquarterEmailAddress"
+                               size="40"
+                               maxlength="255"
+                               value="#{adminHeadquarterActionController.headquarterEmailAddress}"
+                               validatorMessage="#{msg.ENTERED_EMAIL_ADDRESS_IS_INVALID}"
+                               >
+                               <validator:headquarterEmailAddressValidator />
+                       </p:inputText>
+
+                       <p:outputLabel for="landLineCountry" value="#{msg.ADMIN_ENTER_HEADQUARTER_LAND_LINE_NUMBER}" />
+                       <core:inputLandLineNumberPanelGrid targetController="#{adminHeadquarterActionController}" />
+
+                       <p:outputLabel for="faxCountry" value="#{msg.ADMIN_ENTER_HEADQUARTER_FAX_NUMBER}" />
+                       <core:inputFaxNumberPanelGrid targetController="#{adminHeadquarterActionController}" />
+               </p:panelGrid>
+       </p:fieldset>
+
+       <p:fieldset legend="#{msg.ADMIN_HEADQUARTER_ADDRESS_LEGEND}">
+               <p:panelGrid
+                       layout="grid"
+                       columns="2"
+                       columnClasses="ui-grid-col-4,ui-grid-col-8"
+                       styleClass="ui-noborder"
+                       >
+                       <p:outputLabel for="headquarterStreet" value="#{msg.ADMIN_DATA_STREET_NAME}" />
+                       <p:inputText id="headquarterStreet" size="20" maxlength="255" value="#{adminHeadquarterActionController.headquarterStreet}" required="true" requiredMessage="#{msg.ADMIN_HEADQUARTER_STREET_NAME_REQUIRED}" />
+
+                       <p:outputLabel for="headquarterHouseNumber" value="#{msg.ADMIN_DATA_HOUSE_NUMBER}" />
+                       <p:inputText id="headquarterHouseNumber" size="3" maxlength="5" value="#{adminHeadquarterActionController.headquarterHouseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}" required="true" requiredMessage="#{msg.ADMIN_HEADQUARTER_HOUSE_NUMBER_REQUIRED}">
+                               <f:validateLongRange minimum="1" maximum="500" />
+                       </p:inputText>
+
+                       <p:outputLabel for="headquarterHouseNumberExtension" value="#{msg.ADMIN_DATA_HOUSE_NUMBER_EXTENSION}" />
+                       <p:inputText id="headquarterHouseNumberExtension" size="1" maxlength="255" value="#{adminHeadquarterActionController.headquarterHouseNumberExtension}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}" />
+
+                       <p:outputLabel for="headquarterLastHouseNumber" value="#{msg.ADMIN_DATA_LAST_HOUSE_NUMBER}" />
+                       <p:inputText id="headquarterLastHouseNumber" size="3" maxlength="5" value="#{adminHeadquarterActionController.headquarterLastHouseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
+                               <f:validateLongRange minimum="1" maximum="500" />
+                       </p:inputText>
+
+                       <p:outputLabel for="headquarterStore" value="#{msg.ADMIN_ENTER_DATA_STORE}" />
+                       <p:inputText id="headquarterStore" size="3" maxlength="5" value="#{adminHeadquarterActionController.headquarterStore}" validatorMessage="#{msg.ENTERED_STORE_INVALID}">
+                               <f:validateLongRange minimum="-5" maximum="200" />
+                       </p:inputText>
+
+                       <p:outputLabel for="headquarterSuiteNumber" value="#{msg.ADMIN_ENTER_DATA_SUITE_NUMBER}" />
+                       <p:inputText id="headquarterSuiteNumber" size="3" maxlength="5" value="#{adminHeadquarterActionController.headquarterSuiteNumber}" validatorMessage="#{msg.ENTERED_SUITE_NUMBER_INVALID}">
+                               <f:validateLongRange minimum="1" maximum="500" />
+                       </p:inputText>
+
+                       <p:outputLabel for="headquarterZipCode" value="#{msg.DATA_ZIP_CODE}" />
+                       <p:inputText id="headquarterZipCode" size="5" maxlength="6" value="#{adminHeadquarterActionController.headquarterZipCode}" required="true" requiredMessage="#{msg.ADMIN_HEADQUARTER_ZIP_CODE_REQUIRED}">
+                               <f:validateLongRange minimum="1" maximum="99999" />
+                       </p:inputText>
+
+                       <p:outputLabel for="headquarterCity" value="#{msg.ADMIN_DATA_CITY}" />
+                       <p:inputText id="headquarterCity" size="20" maxlength="255" value="#{adminHeadquarterActionController.headquarterCity}" required="true" requiredMessage="#{msg.ADMIN_HEADQUARTER_CITY_REQUIRED}" />
+
+                       <p:outputLabel for="headquarterCountry" value="#{msg.ADMIN_SELECT_COUNTRY}" />
+                       <core:outputCountrySelector id="headquarterCountry" value="#{adminHeadquarterActionController.headquarterCountry}" required="true" requiredMessage="#{msg.ADMIN_HEADQUARTER_COUNTRY_REQUIRED}" />
+               </p:panelGrid>
+       </p:fieldset>
+</ui:composition>
index c19e0f27cc5a37fff97d2aa67cb63effce9f5b40..28cd72967d546af6e85d7b9d237cb122a03819d2 100644 (file)
                                        <h:outputText value="#{msg.ADMIN_ADD_HEADQUARTER_MINIMUM_DATA}" />
                                </h:panelGroup>
 
-                               <ui:include src="/WEB-INF/templates/admin/headquarter/admin_form_headquarter.tpl" />
+                               <ui:include src="/WEB-INF/templates/admin/headquarter/admin_form_headquarter_data.tpl" />
 
                                <f:facet name="footer">
                                        <p:panelGrid columns="2" layout="grid">