]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Thu, 13 Dec 2018 21:25:32 +0000 (22:25 +0100)
committerRoland Häder <roland@mxchange.org>
Thu, 13 Dec 2018 21:25:32 +0000 (22:25 +0100)
- created validator for company's short name (BasicData entity)
- renamed email-address validator for branch office according to naming-convention
- removed "id" attribute from everywhere where it is not explicitly needed
- changed some single-line tags to multi-lines for better readability
- added companyShortName to view and backing bean
- it is now the default instead of companyName which is now fully optional
- also added method isCompanyShortNameUsed() to interface

Signed-off-by: Roland Häder <roland@mxchange.org>
54 files changed:
src/java/org/mxchange/jfinancials/beans/business/basicdata/FinancialsAdminBasicDataWebRequestBean.java
src/java/org/mxchange/jfinancials/beans/business/basicdata/list/FinancialsBasicDataListWebViewBean.java
src/java/org/mxchange/jfinancials/beans/business/basicdata/list/FinancialsBasicDataListWebViewController.java
src/java/org/mxchange/jfinancials/validator/business/basicdata/FinancialsBasicDataCompanyNameValidator.java
src/java/org/mxchange/jfinancials/validator/business/basicdata/FinancialsBasicDataCompanyShortNameValidator.java [new file with mode: 0644]
src/java/org/mxchange/jfinancials/validator/business/basicdata/FinancialsBranchOfficeEmailAddressValidator.java [deleted file]
src/java/org/mxchange/jfinancials/validator/business/branchoffice/FinancialsBranchOfficeEmailAddressValidator.java [new file with mode: 0644]
src/java/org/mxchange/localization/generic_de_DE.properties
src/java/org/mxchange/localization/generic_en_US.properties
web/WEB-INF/templates/admin/admin_menu.tpl
web/WEB-INF/templates/admin/basic_data/admin_form_basic_data.tpl
web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl
web/WEB-INF/templates/admin/headquarter/admin_form_headquarter.tpl
web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl
web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl
web/WEB-INF/templates/admin/mobile/admin_form_contact_mobile.tpl
web/admin/admin_logout.xhtml
web/admin/basic_data/admin_basic_data_list.xhtml
web/admin/branch_office/admin_branch_office_list.xhtml
web/admin/contact/admin_contact_delete.xhtml
web/admin/contact/admin_contact_edit.xhtml
web/admin/contact/admin_contact_export.xhtml
web/admin/contact/admin_contact_list.xhtml
web/admin/contact/unlink/admin_contact_fax_unlink.xhtml
web/admin/contact/unlink/admin_contact_landline_unlink.xhtml
web/admin/contact/unlink/admin_contact_mobile_unlink.xhtml
web/admin/country/admin_country_list.xhtml
web/admin/department/admin_department_list.xhtml
web/admin/employee/admin_employee_list.xhtml
web/admin/fax/admin_fax_delete.xhtml
web/admin/fax/admin_fax_edit.xhtml
web/admin/fax/admin_fax_list.xhtml
web/admin/headquarter/admin_headquarter_list.xhtml
web/admin/landline/admin_landline_delete.xhtml
web/admin/landline/admin_landline_edit.xhtml
web/admin/landline/admin_landline_list.xhtml
web/admin/mobile/admin_mobile_delete.xhtml
web/admin/mobile/admin_mobile_edit.xhtml
web/admin/mobile/admin_mobile_list.xhtml
web/admin/mobile_provider/admin_mobile_provider_list.xhtml
web/admin/opening_time/admin_opening_time_list.xhtml
web/admin/user/admin_user_delete.xhtml
web/admin/user/admin_user_edit.xhtml
web/admin/user/admin_user_export.xhtml
web/admin/user/admin_user_list.xhtml
web/admin/user/admin_user_lock.xhtml
web/admin/user/admin_user_resend_confirmation_link.xhtml
web/admin/user/admin_user_unlock.xhtml
web/guest/user/user_lost_password.xhtml
web/guest/user/user_resend_link.xhtml
web/user/login_logout.xhtml
web/user/login_user_change_email_address.xhtml
web/user/login_user_change_password.xhtml
web/user/login_user_change_personal_data.xhtml

index cb40dce13c9402c4a432a39a21b61fdf4ad59149..74813183f84eb49ffd3793a19828b7315eb16a19 100644 (file)
@@ -96,6 +96,11 @@ public class FinancialsAdminBasicDataWebRequestBean extends BaseFinancialsBean i
         */
        private String companyName;
 
+       /**
+        * Company short name
+        */
+       private String companyShortName;
+
        /**
         * Tax number
         */
@@ -154,17 +159,17 @@ public class FinancialsAdminBasicDataWebRequestBean extends BaseFinancialsBean i
         * <p>
         */
        public void addBusinessBasicData () {
-               // First, validate all parameter
-               if (this.getCompanyName() == null) {
+               // Check if company short name is set
+               if (this.getCompanyShortName() == null) {
                        // Is null
-                       throw new NullPointerException("this.companyName is null"); //NOI18N
-               } else if (this.getCompanyName().isEmpty()) {
+                       throw new NullPointerException("this.companyShortName is null"); //NOI18N
+               } else if (this.getCompanyShortName().isEmpty()) {
                        // Is null
-                       throw new IllegalArgumentException("this.companyName is empty"); //NOI18N
+                       throw new IllegalArgumentException("this.companyShortName is empty"); //NOI18N
                }
 
                // Prepare entity
-               BasicData basicData = new BusinessBasicData(this.getCompanyName());
+               BasicData basicData = new BusinessBasicData(this.getCompanyShortName());
 
                // Set all opther remaining data
                basicData.setCompanyComments(this.getCompanyComments());
@@ -172,6 +177,7 @@ public class FinancialsAdminBasicDataWebRequestBean extends BaseFinancialsBean i
                basicData.setCompanyEmailAddress(this.getCompanyEmailAddress());
                basicData.setCompanyFounder(this.getCompanyFounder());
                basicData.setCompanyHeadquarterData(this.getCompanyHeadQuarter());
+               basicData.setCompanyName(this.getCompanyName());
                basicData.setCompanyTaxNumber(this.getCompanyTaxNumber());
                basicData.setCompanyUserOwner(this.getCompanyUserOwner());
                basicData.setCompanyWebsiteUrl(this.getCompanyWebsiteUrl());
@@ -345,6 +351,24 @@ public class FinancialsAdminBasicDataWebRequestBean extends BaseFinancialsBean i
                this.companyName = companyName;
        }
 
+       /**
+        * Getter for company short name
+        * <p>
+        * @return Company short name
+        */
+       public String getCompanyShortName () {
+               return this.companyShortName;
+       }
+
+       /**
+        * Setter for company short name
+        * <p>
+        * @param companyShortName Company short name
+        */
+       public void setCompanyShortName (final String companyShortName) {
+               this.companyShortName = companyShortName;
+       }
+
        /**
         * Getter for company tax number
         * <p>
index 5219557ad2c4c60b6fa49ff41e39e23238b41c3a..3bf36ccfb9049ea94bac862ba7193a7534ac06b9 100644 (file)
@@ -109,10 +109,10 @@ public class FinancialsBasicDataListWebViewBean extends BaseFinancialsBean imple
                } else if (event.getBasicData().getBasicDataId() < 1) {
                        // Throw IAE
                        throw new IllegalArgumentException(MessageFormat.format("event.basicData.basicDataId={0} is invalid", event.getBasicData().getBasicDataId())); //NOI18N
-               } else if (event.getBasicData().getCompanyName() == null) {
+               } else if (event.getBasicData().getCompanyShortName() == null) {
                        // Throw NPE again
                        throw new NullPointerException("event.basicData.companyName is null"); //NOI18N
-               } else if (event.getBasicData().getCompanyName().isEmpty()) {
+               } else if (event.getBasicData().getCompanyShortName().isEmpty()) {
                        // Throw IAE again
                        throw new IllegalArgumentException("event.basicData.companyName is empty"); //NOI18N
                }
@@ -263,6 +263,34 @@ public class FinancialsBasicDataListWebViewBean extends BaseFinancialsBean imple
                return isFound;
        }
 
+       @Override
+       public Boolean isCompanyShortNameUsed (final String companyShortName) {
+               // Validate parameter
+               if (null == companyShortName) {
+                       // Throw NPE
+                       throw new NullPointerException("companyShortName is null"); //NOI18N
+               } else if (companyShortName.isEmpty()) {
+                       // Throw IAE
+                       throw new IllegalArgumentException("companyShortName is empty"); //NOI18N
+               }
+
+               // Default is not found
+               boolean isFound = false;
+
+               // Check all entries
+               for (final BasicData basicData : this.getAllBasicData()) {
+                       // Is same company name?
+                       if (Objects.equals(basicData.getCompanyShortName(), companyShortName)) {
+                               // Found it
+                               isFound = true;
+                               break;
+                       }
+               }
+
+               // Return flag
+               return isFound;
+       }
+
        @Override
        public Boolean isEmailAddressRegistered (final String emailAddress) {
                // Validate parameter
index c10637170ea2a7bfceae749fac7f9ed6ca04d021..f27a384f0da7ebbb97d06d768288f9054cfdc8ac 100644 (file)
@@ -59,4 +59,13 @@ public interface FinancialsBasicDataListWebViewController extends Serializable {
         */
        Boolean isCompanyNameUsed (final String companyName);
 
+       /**
+        * Checks whether given company short name already exists
+        * <p>
+        * @param companyShortName Company short name to check
+        * <p>
+        * @return Whether the company short name exists
+        */
+       Boolean isCompanyShortNameUsed (final String companyShortName);
+
 }
index 7c1511fcb53770f7ff7169c5a412a71a135dd123..78b0fe8c36ca5d325bea3fc7489086915b4b0f60 100644 (file)
@@ -57,7 +57,7 @@ public class FinancialsBasicDataCompanyNameValidator extends BaseStringValidator
                final String[] requiredFields = {"companyName"}; //NOI18N
 
                // Pre-validation (example: not null, not a string, empty string ...)
-               super.preValidate(context, component, value, requiredFields, false);
+               super.preValidate(context, component, value, requiredFields, true);
 
                // Convert name to string (now securely checked in BaseStringValidator)
                final String companyName = (String) value;
@@ -81,7 +81,7 @@ public class FinancialsBasicDataCompanyNameValidator extends BaseStringValidator
                }
 
                // Check if name is already used
-               final Boolean nameExists = BASIC_DATA_LIST_CONTROLLER.isCompanyNameUsed(companyName);
+               final Boolean nameExists = (companyName != null && BASIC_DATA_LIST_CONTROLLER.isCompanyNameUsed(companyName));
 
                // Is the user id valid?
                if ((!nameExists) && (checkExisting)) {
diff --git a/src/java/org/mxchange/jfinancials/validator/business/basicdata/FinancialsBasicDataCompanyShortNameValidator.java b/src/java/org/mxchange/jfinancials/validator/business/basicdata/FinancialsBasicDataCompanyShortNameValidator.java
new file mode 100644 (file)
index 0000000..d0646bc
--- /dev/null
@@ -0,0 +1,102 @@
+/*
+ * Copyright (C) 2017, 2018 Free Software Foundation
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jfinancials.validator.business.basicdata;
+
+import java.text.MessageFormat;
+import javax.enterprise.inject.spi.CDI;
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.validator.FacesValidator;
+import javax.faces.validator.ValidatorException;
+import org.mxchange.jcoreee.validator.string.BaseStringValidator;
+import org.mxchange.jfinancials.beans.business.basicdata.list.FinancialsBasicDataListWebViewBean;
+import org.mxchange.jfinancials.beans.business.basicdata.list.FinancialsBasicDataListWebViewController;
+
+/**
+ * A validator for basic data company short names
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@FacesValidator (value = "BasicDataCompanyShortNameValidator")
+public class FinancialsBasicDataCompanyShortNameValidator extends BaseStringValidator {
+
+       /**
+        * Business basic data backing bean
+        */
+       private static FinancialsBasicDataListWebViewController BASIC_DATA_LIST_CONTROLLER;
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 57_283_657_476_562L;
+
+       @Override
+       public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
+               // Is the instance there?
+               if (null == BASIC_DATA_LIST_CONTROLLER) {
+                       // Get bean from CDI directly
+                       BASIC_DATA_LIST_CONTROLLER = CDI.current().select(FinancialsBasicDataListWebViewBean.class).get();
+               }
+
+               // All accepted, required fields
+               final String[] requiredFields = {"companyShortName"}; //NOI18N
+
+               // Pre-validation (example: not null, not a string, empty string ...)
+               super.preValidate(context, component, value, requiredFields, false);
+
+               // Convert name to string (now securely checked in BaseStringValidator)
+               final String companyShortName = (String) value;
+
+               // Default is to check on existing names
+               Boolean checkExisting = Boolean.TRUE;
+
+               // Is attribute "allowEmptyRequiredData" set?
+               if (component.getAttributes().containsKey("checkExisting")) { //NOI18N
+                       // Get attribute
+                       final Object attribute = component.getAttributes().get("checkExisting"); //NOI18N
+
+                       // Make sure, it is Boolean as no String is accepted anymore
+                       if (!(attribute instanceof String)) {
+                               // Not valid attribute, please use "true" or "false" (default)
+                               throw new IllegalArgumentException("checkExisting must be of type String. Please use \"true\" or \"false\" for f:attribute value."); //NOI18N
+                       }
+
+                       // Securely cast it
+                       checkExisting = Boolean.parseBoolean((String) attribute);
+               }
+
+               // Check if name is already used
+               final Boolean nameExists = BASIC_DATA_LIST_CONTROLLER.isCompanyShortNameUsed(companyShortName);
+
+               // Is the user id valid?
+               if ((!nameExists) && (checkExisting)) {
+                       // Format message
+                       final String message = MessageFormat.format("No basic data found with comany name {0}.", companyShortName);
+
+                       // Name does not exist
+                       throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_WARN, message, message)); //NOI18N
+               } else if ((nameExists) && (!checkExisting)) {
+                       // Format message
+                       final String message = MessageFormat.format("Found basic data with comany name {0}.", companyShortName);
+
+                       // Name already exists
+                       throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_WARN, message, message)); //NOI18N
+               }
+       }
+
+}
diff --git a/src/java/org/mxchange/jfinancials/validator/business/basicdata/FinancialsBranchOfficeEmailAddressValidator.java b/src/java/org/mxchange/jfinancials/validator/business/basicdata/FinancialsBranchOfficeEmailAddressValidator.java
deleted file mode 100644 (file)
index c3964fa..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * Copyright (C) 2016 - 2018 Free Software Foundation
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jfinancials.validator.business.basicdata;
-
-import java.text.MessageFormat;
-import java.util.regex.Pattern;
-import javax.enterprise.inject.spi.CDI;
-import javax.faces.application.FacesMessage;
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.validator.FacesValidator;
-import javax.faces.validator.ValidatorException;
-import org.mxchange.jcoreee.validator.string.BaseStringValidator;
-import org.mxchange.jfinancials.beans.business.branchoffice.list.FinancialsBranchOfficeListWebViewBean;
-import org.mxchange.jfinancials.beans.business.branchoffice.list.FinancialsBranchOfficeListWebViewController;
-
-/**
- * A validator for branch office email address validation
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@FacesValidator (value = "BranchOfficeEmailAddressValidator")
-public class FinancialsBranchOfficeEmailAddressValidator extends BaseStringValidator {
-
-       /**
-        * Branch office backing bean
-        */
-       private static FinancialsBranchOfficeListWebViewController BRANCH_OFFICE_LIST_CONTROLLER;
-
-       /**
-        * Email pattern
-        */
-       private static final String EMAIL_REGEX = "^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$"; //NOI18N
-
-       /**
-        * Pattern matcher
-        */
-       private static final Pattern PATTERN_MATCHER = Pattern.compile(FinancialsBranchOfficeEmailAddressValidator.EMAIL_REGEX);
-
-       /**
-        * Serial number
-        */
-       private static final long serialVersionUID = 187_536_745_607_196L;
-
-       /**
-        * Whether empty data is allowed
-        */
-       private Boolean allowEmptyRequiredData;
-
-       /**
-        * Default constructor
-        */
-       public FinancialsBranchOfficeEmailAddressValidator () {
-               this.allowEmptyRequiredData = Boolean.FALSE;
-       }
-
-       /**
-        * Setter for allowEmptyRequiredData flag
-        * <p>
-        * @param allowEmptyRequiredData Whether empty values are allowed
-        */
-       public void setAllowEmptyRequiredData (final Boolean allowEmptyRequiredData) {
-               this.allowEmptyRequiredData = allowEmptyRequiredData;
-       }
-
-       @Override
-       public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
-               // The required field
-               final String[] requiredFields = {"emailAddress", "emailAddressRepeat", "resendEmailAddress"}; //NOI18N
-
-               // Pre-validation (example: not null, not a string, empty string ...)
-               super.preValidate(context, component, value, requiredFields, this.allowEmptyRequiredData);
-
-               // Is the email address empty and allowed?
-               if (null == value && this.allowEmptyRequiredData) {
-                       // Then accept this here
-                       return;
-               } else if (null == value) {
-                       // Abort here
-                       throw new ValidatorException(new FacesMessage("No empty email address allowed.")); //NOI18N
-               }
-
-               // Get string from object ... ;-)
-               // @TODO Add IDN support (GNU lib?) Search for emailAddressRepeat
-               final String emailAddress = String.valueOf(value).trim();
-
-               // Checks if the email address matches a regex ("low-level" check)
-               // @TODO Should also be done by <f:validatorRegex />)
-               final boolean matches = PATTERN_MATCHER.matcher(emailAddress).matches(); //NOI18N
-
-               // Is the email address valid?
-               if (!matches) {
-                       // Generate message
-                       String message = MessageFormat.format("Email address {0} does not match regular expression.", emailAddress); //NOI18N
-
-                       // Not matching
-                       throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_WARN, message, message));
-               }
-
-               // Get client id (aka form id)
-               final String clientId = component.getClientId();
-
-               // Is the instance there?
-               if (null == BRANCH_OFFICE_LIST_CONTROLLER) {
-                       // Get bean from CDI directly
-                       BRANCH_OFFICE_LIST_CONTROLLER = CDI.current().select(FinancialsBranchOfficeListWebViewBean.class).get();
-               }
-
-               // Is it registered?
-               final Boolean isRegistered = BRANCH_OFFICE_LIST_CONTROLLER.isEmailAddressRegistered(emailAddress);
-
-               // Is the email address already registered?
-               if ((!clientId.endsWith("resendEmailAddress")) && (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("resendEmailAddress")) && (!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));
-               }
-       }
-
-}
diff --git a/src/java/org/mxchange/jfinancials/validator/business/branchoffice/FinancialsBranchOfficeEmailAddressValidator.java b/src/java/org/mxchange/jfinancials/validator/business/branchoffice/FinancialsBranchOfficeEmailAddressValidator.java
new file mode 100644 (file)
index 0000000..b8c3b93
--- /dev/null
@@ -0,0 +1,142 @@
+/*
+ * Copyright (C) 2016 - 2018 Free Software Foundation
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jfinancials.validator.business.branchoffice;
+
+import java.text.MessageFormat;
+import java.util.regex.Pattern;
+import javax.enterprise.inject.spi.CDI;
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.validator.FacesValidator;
+import javax.faces.validator.ValidatorException;
+import org.mxchange.jcoreee.validator.string.BaseStringValidator;
+import org.mxchange.jfinancials.beans.business.branchoffice.list.FinancialsBranchOfficeListWebViewBean;
+import org.mxchange.jfinancials.beans.business.branchoffice.list.FinancialsBranchOfficeListWebViewController;
+
+/**
+ * A validator for branch office email address validation
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@FacesValidator (value = "BranchOfficeEmailAddressValidator")
+public class FinancialsBranchOfficeEmailAddressValidator extends BaseStringValidator {
+
+       /**
+        * Branch office backing bean
+        */
+       private static FinancialsBranchOfficeListWebViewController BRANCH_OFFICE_LIST_CONTROLLER;
+
+       /**
+        * Email pattern
+        */
+       private static final String EMAIL_REGEX = "^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$"; //NOI18N
+
+       /**
+        * Pattern matcher
+        */
+       private static final Pattern PATTERN_MATCHER = Pattern.compile(FinancialsBranchOfficeEmailAddressValidator.EMAIL_REGEX);
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 187_536_745_607_196L;
+
+       /**
+        * Whether empty data is allowed
+        */
+       private Boolean allowEmptyRequiredData;
+
+       /**
+        * Default constructor
+        */
+       public FinancialsBranchOfficeEmailAddressValidator () {
+               this.allowEmptyRequiredData = Boolean.FALSE;
+       }
+
+       /**
+        * Setter for allowEmptyRequiredData flag
+        * <p>
+        * @param allowEmptyRequiredData Whether empty values are allowed
+        */
+       public void setAllowEmptyRequiredData (final Boolean allowEmptyRequiredData) {
+               this.allowEmptyRequiredData = allowEmptyRequiredData;
+       }
+
+       @Override
+       public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
+               // The required field
+               final String[] requiredFields = {"emailAddress", "emailAddressRepeat", "resendEmailAddress"}; //NOI18N
+
+               // Pre-validation (example: not null, not a string, empty string ...)
+               super.preValidate(context, component, value, requiredFields, this.allowEmptyRequiredData);
+
+               // Is the email address empty and allowed?
+               if (null == value && this.allowEmptyRequiredData) {
+                       // Then accept this here
+                       return;
+               } else if (null == value) {
+                       // Abort here
+                       throw new ValidatorException(new FacesMessage("No empty email address allowed.")); //NOI18N
+               }
+
+               // Get string from object ... ;-)
+               // @TODO Add IDN support (GNU lib?) Search for emailAddressRepeat
+               final String emailAddress = String.valueOf(value).trim();
+
+               // Checks if the email address matches a regex ("low-level" check)
+               // @TODO Should also be done by <f:validatorRegex />)
+               final boolean matches = PATTERN_MATCHER.matcher(emailAddress).matches(); //NOI18N
+
+               // Is the email address valid?
+               if (!matches) {
+                       // Generate message
+                       String message = MessageFormat.format("Email address {0} does not match regular expression.", emailAddress); //NOI18N
+
+                       // Not matching
+                       throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_WARN, message, message));
+               }
+
+               // Get client id (aka form id)
+               final String clientId = component.getClientId();
+
+               // Is the instance there?
+               if (null == BRANCH_OFFICE_LIST_CONTROLLER) {
+                       // Get bean from CDI directly
+                       BRANCH_OFFICE_LIST_CONTROLLER = CDI.current().select(FinancialsBranchOfficeListWebViewBean.class).get();
+               }
+
+               // Is it registered?
+               final Boolean isRegistered = BRANCH_OFFICE_LIST_CONTROLLER.isEmailAddressRegistered(emailAddress);
+
+               // Is the email address already registered?
+               if ((!clientId.endsWith("resendEmailAddress")) && (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("resendEmailAddress")) && (!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 287389e9dd6aff1d48f5e99045df65d1595abc41..b34609c994df92efa7fa18841618c11ec807ea41 100644 (file)
@@ -287,7 +287,7 @@ ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX=Vorwahl f\u00fcr Gespr\u00e4che ausserh
 ADMIN_ENTER_COUNTRY_PHONE_CODE=Vorwahl f\u00fcr das Land:
 ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE=(Beispiel: 49 f\u00fcr Deutschland)
 BUTTON_ADMIN_ADD_COUNTRY=L\u00e4nderdaten hinzuf\u00fcgen
-ID_NUMBER_HEADER=Id-Nummer:
+ID_HEADER=Id:
 ADMIN_LIST_COUNTRY_DATA_COUNTRY_CODE=L\u00e4ndercode:
 ADMIN_LIST_COUNTRY_DATA_COUNTRY_EXTERNAL_DIAL_PREFIX=Vorwahl ausserorts:
 ADMIN_LIST_COUNTRY_DATA_COUNTRY_NAME=Land:
@@ -815,7 +815,7 @@ ENTERED_EMAIL_ADDRESS_IS_INVALID=Die eingegebene Email-Addresse entspricht nicht
 ADMIN_BASIC_DATA_LEGEND=Basisdaten fuer geschaeftlichen Kontakt:
 #@TODO Please fix German umlauts!
 ADMIN_BASIC_DATA_LEGEND_TITLE=Geben Sie die Basisdaten fuer einen geschaeftlichen Kontakt ein.
-ADMIN_BASIC_DATA_COMPANY_NAME_REQUIRED=Bitte geben Sie den Firmennamen inklusive Rechtsform ein.
+ADMIN_BASIC_DATA_COMPANY_SHORT_NAME_REQUIRED=Bitte geben Sie den kurzen Firmennamen ein.
 ADMIN_BASIC_DATA_COMPANY_LEGAL_STATUS=Rechtsform (z.B. GmbH):
 ADMIN_BASIC_DATA_COMPANY_EMAIL_ADDRESS=Haupt-Email-Adresse:
 #@TODO Please fix German umlauts!
@@ -1222,3 +1222,5 @@ EMPLOYEE_NUMBER_HEADER=Mitarbeiternummer:
 #@TODO Please fix German umlauts!
 BACK=Zurueck
 OPTIONS=Optionen
+ADMIN_BASIC_DATA_COMPANY_SHORT_NAME=Kurzer Firmenname:
+ADMIN_BASIC_DATA_COMPANY_SHORT_NAME_HEADER=Kurzer Name:
index d3ce8c8a75b6dfd7e4fb27072e927aeef8906d6a..b35ef4677b58d33a56ef64aa863b1ab729167a2f 100644 (file)
@@ -265,7 +265,7 @@ ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX=Prefix for calls outside local city: (m
 ADMIN_ENTER_COUNTRY_PHONE_CODE=Dial prefix for this country:
 ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE=(Example: 1 for U.S.A.)
 BUTTON_ADMIN_ADD_COUNTRY=Add country data
-ID_NUMBER_HEADER=Id number:
+ID_HEADER=Id:
 ADMIN_LIST_COUNTRY_DATA_COUNTRY_CODE=Country code:
 ADMIN_LIST_COUNTRY_DATA_COUNTRY_EXTERNAL_DIAL_PREFIX=Dial prefix outside:
 ADMIN_LIST_COUNTRY_DATA_COUNTRY_NAME=Country:
@@ -787,7 +787,7 @@ ADMIN_ADD_BASIC_DATA_MINIMUM_DATA=Please enter at least company name including l
 ENTERED_EMAIL_ADDRESS_IS_INVALID=Your entered email address is not valid.
 ADMIN_BASIC_DATA_LEGEND=Basic data for business contact:
 ADMIN_BASIC_DATA_LEGEND_TITLE=Enter basic data for a business contact.
-ADMIN_BASIC_DATA_COMPANY_NAME_REQUIRED=Please enter the company's name including legal status.
+ADMIN_BASIC_DATA_COMPANY_SHORT_NAME_REQUIRED=Please enter the company's short name.
 ADMIN_BASIC_DATA_COMPANY_LEGAL_STATUS=Legal status (e.g. Inc.):
 ADMIN_BASIC_DATA_COMPANY_EMAIL_ADDRESS=Main email address:
 BUTTON_ADMIN_ADD_BASIC_DATA=Add basic data
@@ -1107,3 +1107,5 @@ TAX_NUMBER_HEADER=Tax number:
 EMPLOYEE_NUMBER_HEADER=Employee number:
 BACK=Back
 OPTIONS=Options
+ADMIN_BASIC_DATA_COMPANY_SHORT_NAME=Company's short name
+ADMIN_BASIC_DATA_COMPANY_SHORT_NAME_HEADER=Short name:
index b6a8bdd9e88f7f37c29fb3df9288255720fe7383..348bf4b68a4b474594b99531b3d046d48b6434e6 100644 (file)
                                </p:submenu>
                        </p:slideMenu>
 
-                       <p:commandButton oncomplete="PF('menuSidebar').hide()" value="Hide!" process="@form" />
+                       <p:commandButton
+                               oncomplete="PF('menuSidebar').hide()"
+                               value="Hide!"
+                               />
                </p:sidebar>
 
-               <p:commandButton oncomplete="PF('menuSidebar').show()" value="Show!" process="@form" />
+               <p:commandButton
+                       oncomplete="PF('menuSidebar').show()"
+                       value="Show!"
+                       />
        </h:form>
 </ui:composition>
index 33e90389ab2dd975746f3bd365b4489b27a63ecb..e4ab9379bfe844184c640f212165456312edbc01 100644 (file)
                                columnClasses="ui-grid-col-4,ui-grid-col-8"
                                styleClass="ui-noborder"
                                >
+                               <p:outputLabel for="companyShortName" value="#{msg.ADMIN_BASIC_DATA_COMPANY_SHORT_NAME}" />
+                               <p:inputText
+                                       id="companyShortName"
+                                       value="#{adminBasicCompanyDataController.companyShortName}"
+                                       size="20"
+                                       maxlength="100"
+                                       required="true"
+                                       requiredMessage="#{msg.ADMIN_BASIC_DATA_COMPANY_SHORT_NAME_REQUIRED}"
+                                       >
+                                       <f:validator validatorId="BasicDataCompanyShortNameValidator" />
+                                       <f:attribute name="checkExisting" value="false" />
+                               </p:inputText>
+
                                <p:outputLabel for="companyName" value="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME}" />
                                <p:inputText
                                        id="companyName"
                                        value="#{adminBasicCompanyDataController.companyName}"
                                        size="30"
-                                       maxlength="200"
-                                       required="true"
-                                       requiredMessage="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_REQUIRED}"
+                                       maxlength="255"
                                        >
                                        <f:validator validatorId="BasicDataCompanyNameValidator" />
                                        <f:attribute name="checkExisting" value="false" />
index d96d9eb3156b0351e29afb5dca55f04be16e3dec..7e928833fee12aae077a4eb1033ead7f9c3d786b 100644 (file)
@@ -10,7 +10,7 @@
 
        <core:outputMessageBox panelGroupId="errorHelperContactAddFax" message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
 
-       <h:form id="form_add_contact_fax" rendered="#{not empty beanHelper.contact}">
+       <h:form rendered="#{not empty beanHelper.contact}">
                <h:panelGroup layout="block">
                        <div class="table-header">
                                <h:outputText value="#{msg.ADMIN_ADD_CONTACT_FAX_NUMBER_FORM_TITLE}" />
@@ -54,7 +54,6 @@
                                        />
 
                                <p:commandButton
-                                       process="@form"
                                        type="submit"
                                        action="#{adminContactPhoneController.doLinkMainFaxNumber()}"
                                        value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_FAX_NUMBER}"
index f6e14c7ce12f2a682caa7d7791777135c56f9165..6cb52b22ed526de9b2025b9f356e886386857dac 100644 (file)
@@ -27,7 +27,7 @@
                                required="true"
                                requiredMessage="#{msg.ADMIN_HEADQUARTER_COMPANY_NAME_REQUIRED}"
                                >
-                               <f:validator validatorId="BasicDataCompanyNameValidator" />
+                               <f:validator validatorId="HeadquarterCompanyNameValidator" />
                                <f:attribute name="checkExisting" value="false" />
                        </p:inputText>
 
index 7d8c62ce14add100e40206957be32387477fbbee..57870cb441449bea06846f23bf4426b5f09c5394 100644 (file)
@@ -10,7 +10,7 @@
 
        <core:outputMessageBox panelGroupId="errorHelperContactAddLandline" message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
 
-       <h:form id="form_add_contact_landline" rendered="#{not empty beanHelper.contact}">
+       <h:form rendered="#{not empty beanHelper.contact}">
                <h:panelGroup layout="block">
                        <div class="table-header">
                                <h:outputText value="#{msg.ADMIN_ADD_CONTACT_LAND_LINE_NUMBER_FORM_TITLE}" />
@@ -54,7 +54,6 @@
                                        />
 
                                <p:commandButton
-                                       process="@form"
                                        type="submit"
                                        action="#{adminContactPhoneController.doLinkAddLandLineNumber(beanHelper.contact)}"
                                        value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_LAND_LINE_NUMBER}"
index 19cf28052ebcd44a2cb1a20e41f983adc31b9b49..4cbcf12b2484285fcb4715edb845d6fa600299af 100644 (file)
@@ -10,7 +10,7 @@
 
        <core:outputMessageBox panelGroupId="errorHandlerAddMobileContact" message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
 
-       <h:form id="form_add_contact_mobile" rendered="#{not empty beanHelper.contact}">
+       <h:form rendered="#{not empty beanHelper.contact}">
                <h:panelGroup layout="block">
                        <div class="table-header">
                                <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MOBILE_NUMBER_FORM_TITLE}" />
@@ -55,7 +55,6 @@
                                        />
 
                                <p:commandButton
-                                       process="@form"
                                        type="submit"
                                        action="#{adminContactPhoneController.doLinkAddMobileNumber(beanHelper.contact)}"
                                        value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_MOBILE_NUMBER}"
index ef10a6516184f8290dc48ce34eb7311563ee6d90..428320aafbb6111f4f8a3a17d1fd1306685b5f77 100644 (file)
@@ -7,6 +7,6 @@
 
        <h:outputText styleClass="alert-danger" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" rendered="#{empty beanHelper.contact}" />
 
-       <h:form id="form_add_contact_mobile">
+       <h:form>
        </h:form>
 </ui:composition>
index 7f08038efd252f43ebb98992d113668acc593f8f..6fd0bf4fb62a79d85f2be90d81229abc4fa2d8b8 100644 (file)
@@ -17,7 +17,7 @@
        </ui:define>
 
        <ui:define name="content">
-               <h:form id="form-admin-logout">
+               <h:form>
                        <h:panelGroup styleClass="table" layout="block">
                                <div class="table-header">
                                        <h:outputText value="#{msg.ADMIN_LOGOUT_TITLE}" />
@@ -29,7 +29,6 @@
 
                                <p:panelGrid columns="2" layout="grid">
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                action="#{userLoginController.doAdminLogout()}"
                                                value="#{msg.BUTTON_USER_LOGOUT}"
index 34cd3dec05aa5d2bc3b0c6cf93395ddcc786b183..54ef06335aae93ffdf1f07f3429cff9cbaa714eb 100644 (file)
                                        oncomplete="PF('basicDataDialog').show()"
                                        />
 
-                               <p:column headerText="#{msg.ID_NUMBER_HEADER}" sortBy="#{basicData.basicDataId}" filterable="false">
+                               <p:column headerText="#{msg.ID_HEADER}" sortBy="#{basicData.basicDataId}" filterable="false">
                                        <p:link outcome="admin_show_basic_data" title="#{msg.ADMIN_LINK_SHOW_BASIC_DATA_TITLE}" value="#{basicData.basicDataId}">
                                                <f:param name="basicDataId" value="#{basicData.basicDataId}" />
                                        </p:link>
                                </p:column>
 
-                               <p:column headerText="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_HEADER}" sortBy="#{basicData.companyName}" filterBy="#{basicData.companyName}" filterMatchMode="contains">
+                               <p:column headerText="#{msg.ADMIN_BASIC_DATA_COMPANY_SHORT_NAME_HEADER}" sortBy="#{basicData.companyShortName}" filterBy="#{basicData.companyShortName}" filterMatchMode="contains">
                                        <h:outputLink value="#{basicData.companyWebsiteUrl}" target="_blank" title="#{msg.LINK_COMPANY_WEBSITE_URL_TITLE}" rel="external" rendered="#{not empty basicData.companyWebsiteUrl}">
-                                               <h:outputText value="#{basicData.companyName}" />
+                                               <h:outputText value="#{basicData.companyShortName}" />
                                        </h:outputLink>
 
-                                       <h:outputText value="#{basicData.companyName}" title="#{msg.NO_WEBSITE_URL_ENTERED}" rendered="#{empty basicData.companyWebsiteUrl}" />
+                                       <h:outputText value="#{basicData.companyShortName}" title="#{msg.NO_WEBSITE_URL_ENTERED}" rendered="#{empty basicData.companyWebsiteUrl}" />
+                               </p:column>
+
+                               <p:column headerText="#{msg.ADMIN_BASIC_DATA_COMPANY_NAME_HEADER}" sortBy="#{basicData.companyName}" filterBy="#{basicData.companyName}" filterMatchMode="contains">
+                                       <h:outputText value="#{basicData.companyName}" rendered="#{not empty basicData.companyName}" />
+
+                                       <h:outputText value="-" rendered="#{empty basicData.companyName}" />
                                </p:column>
 
                                <p:column headerText="#{msg.ADMIN_COMPANY_CONTACT_PERSON_HEADER}" sortBy="#{basicData.companyContactEmployee}" filterBy="#{basicData.companyContactEmployee}" filterMatchMode="in">
                                                        </h:outputFormat>
                                                </f:facet>
 
-                                               <p:outputLabel value="#{msg.ID_NUMBER_HEADER}" title="#{msg.BASIC_DATA_ID_NUMBER_TITLE}" />
+                                               <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.BASIC_DATA_ID_NUMBER_TITLE}" />
                                                <h:outputText value="#{basicDataListController.selectedBasicData.basicDataId}" />
                                        </p:panelGrid>
                                </p:outputPanel>
                                                        />
 
                                                <p:commandButton
-                                                       process="@form"
                                                        type="submit"
                                                        value="#{msg.BUTTON_ADMIN_ADD_BASIC_DATA}"
                                                        action="#{adminBasicCompanyDataController.addBusinessBasicData()}"
index 4d0377fff4c5df1aca3e3440ec48874d8276f9a4..f4feb5f83f91b16df1954ce03a56a9237834a198 100644 (file)
@@ -80,7 +80,7 @@
                                        oncomplete="PF('branchOfficeDialog').show()"
                                        />
 
-                               <p:column headerText="#{msg.ID_NUMBER_HEADER}" sortBy="#{branchOffice.branchId}" filterable="false">
+                               <p:column headerText="#{msg.ID_HEADER}" sortBy="#{branchOffice.branchId}" filterable="false">
                                        <p:link outcome="admin_show_branch_office" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICE_TITLE}" value="#{branchOffice.branchId}">
                                                <f:param name="branchId" value="#{branchOffice.branchId}" />
                                        </p:link>
                                                                        </h:outputFormat>
                                                                </f:facet>
 
-                                                               <p:outputLabel value="#{msg.ID_NUMBER_HEADER}" title="#{msg.BRANCH_OFFICE_ID_NUMBER_TITLE}" />
+                                                               <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.BRANCH_OFFICE_ID_NUMBER_TITLE}" />
                                                                <h:outputText value="#{branchOfficeListController.selectedBranchOffice.branchId}" />
 
                                                                <p:outputLabel value="#{msg.BRANCH_OFFICE_NUMBER_HEADER}" title="#{msg.BRANCH_OFFICE_NUMBER_TITLE}" />
                        </p:dialog>
                </h:form>
 
-               <h:form id="form-add-branch-office">
+               <h:form>
                        <p:panelGrid
                                columns="1"
                                layout="grid"
                                                        />
 
                                                <p:commandButton
-                                                       process="@form"
                                                        type="submit"
                                                        value="#{msg.BUTTON_ADMIN_ADD_BASIC_DATA}"
                                                        action="#{adminBranchOfficeController.addBranchOffice()}"
                        </p:fieldset>
                </h:form>
 
-               <h:form id="form-admin-add-branch-opening-time">
+               <h:form>
                        <p:panelGrid
                                columns="1"
                                layout="grid"
                                                        />
 
                                                <p:commandButton
-                                                       process="@form"
                                                        type="submit"
                                                        value="#{msg.BUTTON_ADMIN_ADD_BRANCH_OFFICE_OPENING_TIME}"
                                                        action="#{adminBranchOfficeController.addOpeningTime()}"
index 037459485470d235d6b2bb18a430cfabb53c6830..28c76fc04af2d8e57eecafbe32a0a2c646912649 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerDeleteContact" message="#{msg.ERROR_CONTACT_ID_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
 
-               <h:form id="form-admin-delete-user" rendered="#{not empty beanHelper.contact}">
+               <h:form rendered="#{not empty beanHelper.contact}">
                        <h:inputHidden value="#{adminContactController.contactId}" />
 
                        <h:panelGroup styleClass="table" layout="block">
@@ -44,7 +44,6 @@
                                <ui:include src="/WEB-INF/templates/admin/contact/admin_show_contact_data.tpl" />
 
                                <p:commandButton
-                                       process="@form"
                                        type="submit"
                                        value="#{msg.BUTTON_ADMIN_DELETE_CONTACT}"
                                        action="#{adminContactController.deleteContactData()}"
index 3f7d14d0a9a3a12db5e00d1e3e9afa4cdeb37080..60c868d9ace707c17048ebc2906f67217d997797 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerEditContact" message="#{msg.ERROR_CONTACT_ID_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
 
-               <h:form id="form-admin-edit-contact" rendered="#{not empty beanHelper.contact}">
+               <h:form rendered="#{not empty beanHelper.contact}">
                        <h:inputHidden value="#{adminContactController.contactId}" />
 
                        <h:panelGroup layout="block">
@@ -50,7 +50,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_EDIT_CONTACT}"
                                                action="#{adminContactController.editContactData()}"
index 9e8ab677a17734d3f174981f0909f594d7d8d281..d4299231a7d60bfcc6230c6f3530887dc5facd87 100644 (file)
@@ -18,7 +18,7 @@
        </ui:define>
 
        <ui:define name="content">
-               <h:form id="form_export_contacts" rendered="#{not contactController.allContacts().isEmpty()}">
+               <h:form rendered="#{not contactController.allContacts().isEmpty()}">
                        <p:dataTable
                                id="table_export_contacts"
                                var="contact"
                                <p:panelGrid columns="2" layout="grid">
                                        <p:commandButton
                                                ajax="false"
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_EXPORT_CONTACTS_XLS}"
                                                >
index 7a13e1c0d8ab41549fdf029d479656a82914c659..648aadc6ce61c46161760c75f8b20261afaf2193 100644 (file)
                                                value="#{msg.BUTTON_RESET_FORM}"
                                                />
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_ADD_CONTACT}"
                                                action="#{adminContactController.addContact()}"
index aa2c4fdb54f0578f72ad7e226b38ec6611654f62..e1d307dcdc5680573f6a41bcad1ecbb0bfb4c7b2 100644 (file)
@@ -31,7 +31,7 @@
 
                <core:outputMessageBox panelGroupId="errorHandlerUnlinkContact" message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
 
-               <h:form id="form_unlink_contact_fax" rendered="#{not empty beanHelper.faxNumber and not empty beanHelper.contact and beanHelper.contact.contactFaxNumber == beanHelper.faxNumber}">
+               <h:form rendered="#{not empty beanHelper.faxNumber and not empty beanHelper.contact and beanHelper.contact.contactFaxNumber == beanHelper.faxNumber}">
                        <h:inputHidden value="#{adminContactPhoneController.contact}" />
                        <h:inputHidden value="#{adminContactPhoneController.phoneId}" />
 
@@ -56,7 +56,6 @@
 
                                <p:panelGrid columns="2" layout="grid">
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_UNLINK_FAX_NUMBER}"
                                                action="#{adminContactPhoneController.unlinkFaxContactData()}"
index 8cbfdb51554b7eefd45795fd698acca3e2ab1a76..1845f997454525bd7a335e5cbc02d0ee14867484 100644 (file)
@@ -29,7 +29,7 @@
 
                <core:outputMessageBox panelGroupId="errorHandlerUnlinkContact" message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
 
-               <h:form id="form_unlink_contact_landline" rendered="#{not empty beanHelper.landLineNumber and not empty beanHelper.contact and beanHelper.contact.contactLandLineNumber == beanHelper.landLineNumber}">
+               <h:form rendered="#{not empty beanHelper.landLineNumber and not empty beanHelper.contact and beanHelper.contact.contactLandLineNumber == beanHelper.landLineNumber}">
                        <h:panelGroup styleClass="table" layout="block">
                                <div class="table-header">
                                        <h:outputText value="#{msg.ADMIN_UNLINK_CONTACT_LAND_LINE_NUMBER_TITLE}" />
@@ -51,7 +51,6 @@
 
                                <p:panelGrid columns="2" layout="grid">
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_UNLINK_LAND_LINE_NUMBER}"
                                                action="#{adminContactPhoneController.unlinkLandLineContactData()}"
index cb8ba29770eeb4d7ba61f25017bd3650b535aec5..ed91cacfd764305a1992c6ee6f265727a7316eb9 100644 (file)
@@ -29,7 +29,7 @@
 
                <core:outputMessageBox panelGroupId="errorHandlerUnlinkContact" message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
 
-               <h:form id="form_unlink_contact_mobile" rendered="#{not empty beanHelper.mobileNumber and not empty beanHelper.contact and beanHelper.contact.contactMobileNumber == beanHelper.mobileNumber}">
+               <h:form rendered="#{not empty beanHelper.mobileNumber and not empty beanHelper.contact and beanHelper.contact.contactMobileNumber == beanHelper.mobileNumber}">
                        <h:panelGroup styleClass="table" layout="block">
                                <div class="table-header">
                                        <h:outputText value="#{msg.ADMIN_UNLINK_CONTACT_MOBILE_NUMBER_TITLE}" />
@@ -50,7 +50,6 @@
                                </div>
 
                                <p:commandButton
-                                       process="@form"
                                        type="submit"
                                        value="#{msg.BUTTON_ADMIN_UNLINK_MOBILE_NUMBER}"
                                        action="#{adminContactPhoneController.unlinkMobileContactData()}"
index 83f1a97aa02d8a03d43440418da30e1ba5afc683..5a97cdf8b2adc13440de9cb578d1e4109ed6a05d 100644 (file)
@@ -31,7 +31,7 @@
                                >
                                <p:column>
                                        <f:facet name="header">
-                                               <h:outputText value="#{msg.ID_NUMBER_HEADER}" />
+                                               <h:outputText value="#{msg.ID_HEADER}" />
                                        </f:facet>
 
                                        <p:link outcome="admin_show_country" title="#{msg.ADMIN_LINK_SHOW_COUNTRY_TITLE}" value="#{country.countryId}">
@@ -88,7 +88,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_ADD_COUNTRY}"
                                                action="#{adminCountryController.addCountry()}"
index 642e09b2ada4f91563c5ff04b4a45fab1572e57c..a5329f06733ccfc0b2d2a3f61613af16f009cc27 100644 (file)
@@ -53,7 +53,7 @@
                                        </p:panelGrid>
                                </f:facet>
 
-                               <p:column headerText="#{msg.ID_NUMBER_HEADER}" sortBy="#{department.departmentId}" filterable="false">
+                               <p:column headerText="#{msg.ID_HEADER}" sortBy="#{department.departmentId}" filterable="false">
                                        <p:link outcome="admin_show_department" title="#{msg.ADMIN_LINK_SHOW_DEPARTMENT_TITLE}" value="#{department.departmentId}">
                                                <f:param name="departmentId" value="#{department.departmentId}" />
                                        </p:link>
                                                        />
 
                                                <p:commandButton
-                                                       process="@form"
                                                        type="submit"
                                                        value="#{msg.BUTTON_ADMIN_ADD_DEPARTMENT_DATA}"
                                                        action="#{adminDepartmentController.addDepartment()}"
index 50bdb39ae1e681b74193c5afaf3c403339675fb3..12e7bd848bc7e46517c094b9207b742ace370ec3 100644 (file)
@@ -53,7 +53,7 @@
                                        </p:panelGrid>
                                </f:facet>
 
-                               <p:column headerText="#{msg.ID_NUMBER_HEADER}" sortBy="#{employee.employeeId}" filterable="false">
+                               <p:column headerText="#{msg.ID_HEADER}" sortBy="#{employee.employeeId}" filterable="false">
                                        <p:link outcome="admin_show_employee" title="#{msg.ADMIN_LINK_SHOW_EMPLOYEE_TITLE}" value="#{employee.employeeId}">
                                                <f:param name="employeeId" value="#{employee.employeeId}" />
                                        </p:link>
                                                        />
 
                                                <p:commandButton
-                                                       process="@form"
                                                        type="submit"
                                                        value="#{msg.BUTTON_ADMIN_ADD_EMPLOYEE}"
                                                        action="#{adminEmployeeController.addEmployee()}"
index 770fcb1fd3b8c349bc72ae1f65e7a65ff99ac4a8..1de0d0be1711d4e64abd21c41daf83bc1c108148 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerDeleteFax" message="#{msg.ERROR_BEAN_HELPER_FAX_NUMBER_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.faxNumber}" />
 
-               <h:form id="form_delete_fax" rendered="#{not empty beanHelper.faxNumber}">
+               <h:form rendered="#{not empty beanHelper.faxNumber}">
                        <h:inputHidden value="#{adminPhoneController.phoneId}" />
 
                        <h:panelGroup styleClass="table" layout="block">
@@ -44,7 +44,6 @@
                                </div>
 
                                <p:commandButton
-                                       process="@form"
                                        type="submit"
                                        value="#{msg.BUTTON_ADMIN_DELETE_FAX}"
                                        action="#{adminPhoneController.deleteFaxData()}"
index ff4ffa606ef81028937c08e8ef9433f1783bb1b1..1ce0f9df423123e8c312ceb3a0537959ee549432 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerEditFax" message="#{msg.ERROR_BEAN_HELPER_FAX_NUMBER_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.faxNumber}" />
 
-               <h:form id="form_edit_fax" rendered="#{not empty beanHelper.faxNumber}">
+               <h:form rendered="#{not empty beanHelper.faxNumber}">
                        <h:inputHidden value="#{adminPhoneController.phoneId}" />
 
                        <h:panelGroup layout="block">
@@ -46,7 +46,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_EDIT_FAX_NUMBER}"
                                                action="#{adminPhoneController.doChangeFaxNumber()}"
index ceaacc2006d25be9628313018bed4da90ad619ce..580844c7d22086000d991aeca01c0a6dfc6682c0 100644 (file)
@@ -29,7 +29,7 @@
                        >
                        <p:column>
                                <f:facet name="header">
-                                       <h:outputText value="#{msg.ID_NUMBER_HEADER}" />
+                                       <h:outputText value="#{msg.ID_HEADER}" />
                                </f:facet>
 
                                <p:link outcome="admin_show_fax" value="#{faxNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_FAX_NUMBER_TITLE}">
index c8ec34569a3ca2dc075970862d3ec9b84f036572..a6528673017831d46f6793ae922f025a241286d5 100644 (file)
@@ -53,7 +53,7 @@
                                        </p:panelGrid>
                                </f:facet>
 
-                               <p:column headerText="#{msg.ID_NUMBER_HEADER}" sortBy="#{headquarter.headquarterId}" filterable="false">
+                               <p:column headerText="#{msg.ID_HEADER}" sortBy="#{headquarter.headquarterId}" filterable="false">
                                        <p:link outcome="admin_show_headquarter" title="#{msg.ADMIN_LINK_SHOW_HEADQUARTER_TITLE}" value="#{headquarter.headquarterId}">
                                                <f:param name="headquarterId" value="#{headquarter.headquarterId}" />
                                        </p:link>
                                                        />
 
                                                <p:commandButton
-                                                       process="@form"
                                                        type="submit"
                                                        value="#{msg.BUTTON_ADMIN_ADD_HEADQUARTER}"
                                                        action="#{adminHeadquarterController.addHeadquarter()}"
                        </p:fieldset>
                </h:form>
 
-               <h:form id="form-admin-add-headquarter-opening-time">
+               <h:form>
                        <p:panelGrid
                                columns="1"
                                layout="grid"
                                                        />
 
                                                <p:commandButton
-                                                       process="@form"
                                                        type="submit"
                                                        value="#{msg.BUTTON_ADMIN_ADD_HEADQUARTER_OPENING_TIME}"
                                                        action="#{adminHeadquarterController.addOpeningTime()}"
index 2098e992672be6cb389f482d35d90b38f89f4334..a9bf9dcfdfdf00bec1b44a056ba10ddb1975c2a2 100644 (file)
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerDeleteLandline" message="#{msg.ERROR_BEAN_HELPER_LAND_LINE_NUMBER_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.landLineNumber}" />
 
-               <h:form id="form_delete_landline" rendered="#{not empty beanHelper.landLineNumber}">
+               <h:form rendered="#{not empty beanHelper.landLineNumber}">
                        <h:panelGroup styleClass="table" layout="block">
                                <div class="table-header">
                                        <h:outputText value="#{msg.ADMIN_DELETE_LAND_LINE_TITLE}" />
                                </div>
 
                                <div class="para">
-                                       <core:outputAdminLandLinePanelGrid landLineNumber="#{beanHelper.landLineNumber}" renderShowLink="false" showAdminDropdownMenu="false" />
+                                       <core:outputAdminLandLinePanelGrid
+                                               landLineNumber="#{beanHelper.landLineNumber}"
+                                               renderShowLink="false"
+                                               showAdminDropdownMenu="false"
+                                               />
                                </div>
 
                                <div class="para">
@@ -42,7 +46,6 @@
                                </div>
 
                                <p:commandButton
-                                       process="@form"
                                        type="submit"
                                        value="#{msg.BUTTON_ADMIN_DELETE_LAND_LINE}"
                                        action="#{adminPhoneController.deleteLandLineData()}"
index 166495221c52129593ee1eb018bfcbcca31188fc..4f9d0fc5a7fa9622bdd3095ad124f06f839badf7 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerEditLandline" message="#{msg.ERROR_BEAN_HELPER_LAND_LINE_NUMBER_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.landLineNumber}" />
 
-               <h:form id="form_edit_landline" rendered="#{not empty beanHelper.landLineNumber}">
+               <h:form rendered="#{not empty beanHelper.landLineNumber}">
                        <h:panelGroup layout="block">
                                <div class="table-header">
                                        <h:outputFormat value="#{msg.ADMIN_EDIT_LAND_LINE_NUMBER_TITLE}">
@@ -44,7 +44,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_EDIT_LAND_LINE_NUMBER}"
                                                action="#{adminPhoneController.doChangeLandLineNumber()}"
index 730b47acdc0904b31b992ce7601bd3d33d8973e4..c3979ce6d7e668bfdc5938cfab48c9c5b39c3e8e 100644 (file)
@@ -28,7 +28,7 @@
                        >
                        <p:column>
                                <f:facet name="header">
-                                       <h:outputText value="#{msg.ID_NUMBER_HEADER}" />
+                                       <h:outputText value="#{msg.ID_HEADER}" />
                                </f:facet>
 
                                <p:link outcome="admin_show_landline" value="#{landLineNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_LAND_LINE_NUMBER_TITLE}">
index 79d6a3781a17b4a174645aa3e788b11845091e8b..557e17c56c1df3a1c5e496607b0068e92778ba75 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerDeleteMobile" message="#{msg.ERROR_BEAN_HELPER_MOBILE_NUMBER_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.mobileNumber}" />
 
-               <h:form id="form_delete_mobile" rendered="#{not empty beanHelper.mobileNumber}">
+               <h:form rendered="#{not empty beanHelper.mobileNumber}">
                        <h:panelGroup styleClass="table" layout="block">
                                <div class="table-header">
                                        <h:outputText value="#{msg.ADMIN_DELETE_MOBILE_TITLE}" />
@@ -42,7 +42,6 @@
                                </div>
 
                                <p:commandButton
-                                       process="@form"
                                        type="submit"
                                        value="#{msg.BUTTON_ADMIN_DELETE_MOBILE_NUMBER}"
                                        action="#{adminPhoneController.deleteMobileData()}"
index f551e27910b2a11e1de868b992d16a60fbfcc9d4..f7ff0a47559dbdb34fb1fad93ea2e9fc5ea7502b 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerEditMobile" message="#{msg.ERROR_BEAN_HELPER_MOBILE_NUMBER_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.mobileNumber}" />
 
-               <h:form id="form_edit_mobile" rendered="#{not empty beanHelper.mobileNumber}">
+               <h:form rendered="#{not empty beanHelper.mobileNumber}">
                        <h:panelGroup layout="block">
                                <div class="table-header">
                                        <h:outputFormat value="#{msg.ADMIN_EDIT_MOBILE_NUMBER_TITLE}">
@@ -44,7 +44,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_EDIT_MOBILE_NUMBER}"
                                                action="#{adminPhoneController.doUpdateMobileNumber()}"
index 908fbd906904f78c35cab6409b0bd7af8fef86a6..3545df05554df1a5f477a7e855e3a856adf66281 100644 (file)
@@ -28,7 +28,7 @@
                        >
                        <p:column>
                                <f:facet name="header">
-                                       <h:outputText value="#{msg.ID_NUMBER_HEADER}" />
+                                       <h:outputText value="#{msg.ID_HEADER}" />
                                </f:facet>
 
                                <p:link outcome="admin_show_mobile" value="#{mobileNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_MOBILE_NUMBER_TITLE}">
index baf809ba2278020b1e8b58e45d81b66b890fe82c..b4ab0f2004fbf91051ea182cf150a99011434acf 100644 (file)
@@ -51,7 +51,7 @@
                                        </p:panelGrid>
                                </f:facet>
 
-                               <p:column headerText="#{msg.ID_NUMBER_HEADER}" sortBy="#{mobileProvider.providerId}" filterBy="#{mobileProvider.providerId}">
+                               <p:column headerText="#{msg.ID_HEADER}" sortBy="#{mobileProvider.providerId}" filterBy="#{mobileProvider.providerId}">
                                        <p:link outcome="admin_show_mobile_provider" title="#{msg.ADMIN_LINK_SHOW_MOBILE_PROVIDER_TITLE}" value="#{mobileProvider.providerId}">
                                                <f:param name="providerId" value="#{mobileProvider.providerId}" />
                                        </p:link>
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_ADD_MOBILE_PROVIDER}"
                                                action="#{adminMobileProviderController.addMobileProvider()}"
index 055c4ee73532674daa04ded132770af4118f19da..85619b94c397f7b8f8b7a9cd095ea54bc5130d72 100644 (file)
@@ -53,7 +53,7 @@
                                        </p:panelGrid>
                                </f:facet>
 
-                               <p:column headerText="#{msg.ID_NUMBER_HEADER}" sortBy="#{openingTime.openingId}" filterable="false">
+                               <p:column headerText="#{msg.ID_HEADER}" sortBy="#{openingTime.openingId}" filterable="false">
                                        <p:link outcome="admin_show_opening_time" title="#{msg.ADMIN_LINK_SHOW_DEPARTMENT_TITLE}" value="#{openingTime.openingId}">
                                                <f:param name="openingId" value="#{openingTime.openingId}" />
                                        </p:link>
                                                        />
 
                                                <p:commandButton
-                                                       process="@form"
                                                        type="submit"
                                                        value="#{msg.BUTTON_ADMIN_ADD_OPENING_TIME}"
                                                        action="#{adminOpeningTimeController.addOpeningTime()}"
index bb01a76dc94659ac0f6a45a131b8d8ed23192f8d..6df66c9445cdbfd5a6460f6842722f5c30acf90b 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerDeleteUser" message="#{msg.ERROR_USER_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.user}" />
 
-               <h:form id="form-admin-delete-user" rendered="#{not empty beanHelper.user}">
+               <h:form rendered="#{not empty beanHelper.user}">
                        <h:panelGroup layout="block">
                                <div class="table-header">
                                        <h:outputFormat value="#{msg.ADMIN_DELETE_USER_TITLE}">
@@ -53,7 +53,6 @@
                                </h:panelGroup>
 
                                <p:commandButton
-                                       process="@form"
                                        type="submit"
                                        value="#{msg.BUTTON_ADMIN_DELETE_USER}"
                                        action="#{adminUserController.deleteUserData()}"
index add12b6cce1b73444597404b2fad7cff983622da..5485fc602f6999a903063fc3d79f977146735a84 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerEditUser" message="#{msg.ERROR_USER_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.user}" />
 
-               <h:form id="form_edit_user" rendered="#{not empty beanHelper.user}">
+               <h:form rendered="#{not empty beanHelper.user}">
                        <h:panelGroup layout="block">
                                <div class="table-header">
                                        <h:outputText value="#{msg.ADMIN_EDIT_USER_TITLE}" />
@@ -46,7 +46,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_ADMIN_EDIT_USER}"
                                                action="#{adminUserController.editUserData()}"
index 78e1d41514ae98194c9f342a6d87e2ca0e8d7e88..28c98cfd321d2076159d6fa6c8c0f3603cb5503c 100644 (file)
@@ -18,9 +18,9 @@
        </ui:define>
 
        <ui:define name="content">
-               <h:form id="form_export_users">
+               <h:form id="form-export-users">
                        <p:dataTable
-                               id="table_export_users"
+                               id="table-export-users"
                                var="user"
                                value="#{userController.allUsers()}"
                                paginator="true"
 
                                <p:commandButton
                                        ajax="false"
-                                       process="@form"
                                        type="submit"
                                        value="#{msg.BUTTON_ADMIN_EXPORT_USERS_XLS}"
                                        >
 
                                        <p:dataExporter
                                                type="xls"
-                                               target="table_export_users"
+                                               target="table-export-users"
                                                fileName="all_users"
                                                />
                                </p:commandButton>
index f5a1b057d1f7bf7afd6993d1b8ab58a620f9dc61..41ec650e1f501e15cb91dacb28f59f2ec9c46a3b 100644 (file)
                                                        />
 
                                                <p:commandButton
-                                                       process="@form"
                                                        type="submit"
                                                        id="submit_add_user"
                                                        value="#{msg.BUTTON_ADMIN_ADD_USER}"
index 325142cbe4afb09ccfa31d8fc278e518269e2cb4..6987da79818186b621eeef6279b279dd50b80dcf 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerLockUser" message="#{msg.ERROR_USER_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.user}" />
 
-               <h:form id="form-admin-user-lock" rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'CONFIRMED'}">
+               <h:form rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'CONFIRMED'}">
                        <h:panelGroup layout="block">
                                <div class="table-header">
                                        <h:outputFormat value="#{msg.ADMIN_LOCK_USER_TITLE}">
@@ -83,7 +83,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                action="#{adminUserController.lockUserAccount()}"
                                                value="#{msg.BUTTON_ADMIN_LOCK_USER_ACCOUNT}"
index 89c54996ebbd9049e75580eb9562fabb46dd8c07..45eb95b162470d68f095b8793917cba831ec52e8 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerResendLinkUser" message="#{msg.ERROR_USER_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.user}" />
 
-               <h:form id="form-admin-user-resend" rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
+               <h:form rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'UNCONFIRMED'}">
                        <h:panelGroup layout="block">
                                <div class="table-header">
                                        <h:outputFormat value="#{msg.ADMIN_RESEND_USER_CONFIRMATION_LINK_TITLE}">
@@ -51,7 +51,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                action="#{adminUserController.resendConfirmationLink()}"
                                                value="#{msg.BUTTON_ADMIN_RESEND_USER_CONFIRMATION_LINK_ACCOUNT}"
index cfe6cc37c19f9aefd92020b9cf8ada547ed8cb03..7ca8a10f56ebb4fb9dc05c833674e2348b1a7933 100644 (file)
@@ -27,7 +27,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorHandlerUnlockUser" message="#{msg.ERROR_USER_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.user}" />
 
-               <h:form id="form-admin-user-unlock" rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'LOCKED'}">
+               <h:form rendered="#{not empty beanHelper.user and beanHelper.user.userAccountStatus == 'LOCKED'}">
                        <h:panelGroup layout="block">
                                <div class="table-header">
                                        <h:outputFormat value="#{msg.ADMIN_UNLOCK_USER_TITLE}">
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                action="#{adminUserController.unlockUserAccount()}"
                                                value="#{msg.BUTTON_ADMIN_UNLOCK_USER_ACCOUNT}"
index bd8e76cf2dd0a747d0736bc5faaedab89fdd8cdb..d51979cd737c46e366aaf1b5f0122e5e4759341a 100644 (file)
@@ -22,7 +22,7 @@
 
                <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name') and featureController.isFeatureEnabled('user_password_recovery')}">
                        <div id="user_lost_password_content">
-                               <h:form id="form_lost_password">
+                               <h:form>
                                        <h:panelGroup styleClass="table" layout="block">
                                                <div class="table-header">
                                                        <h:outputText value="#{msg.GUEST_LOST_PASSWORD_TITLE}" />
@@ -65,7 +65,6 @@
                                                                />
 
                                                        <p:commandButton
-                                                               process="@form"
                                                                type="submit"
                                                                value="#{msg.BUTTON_CONTINUE_STEP_2}"
                                                                action="#{passwordRecoveryController.doLostPasswordStep2()}"
index 4b0b32c4dc46a029cff43981e64fcc64fcea63ff..c194adfcf069b404bb934a76ca2242ef949541a4 100644 (file)
@@ -21,7 +21,7 @@
        <ui:define name="content">
                <core:outputMessageBox panelGroupId="errorUserResendLinkDisabled" message="#{msg.ERROR_GUEST_USER_RESEND_LINK_DISABLED}" messageStyleClass="alert-danger" rendered="#{not featureController.isFeatureEnabled('user_resend_confirmation_link')}" />
 
-               <h:form id="form_resend_link" rendered="#{featureController.isFeatureEnabled('user_resend_confirmation_link')}">
+               <h:form rendered="#{featureController.isFeatureEnabled('user_resend_confirmation_link')}">
                        <h:panelGroup styleClass="table" layout="block">
                                <div class="table-header">
                                        <h:outputText value="#{msg.GUEST_RESEND_LINK_TITLE}" />
@@ -60,7 +60,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_RESEND_CONFIRMATION_LINK}"
                                                action="#{userResendConfirmationController.doResendLink()}"
index f1023d5ead70931e7da992cacea6f91976a68ea8..80e839bcc1a39caaf0931cac5ab1a16e21c61e8c 100644 (file)
@@ -16,7 +16,7 @@
        </ui:define>
 
        <ui:define name="content">
-               <h:form id="form_user_logout" rendered="#{userLoginController.isUserLoggedIn()}">
+               <h:form rendered="#{userLoginController.isUserLoggedIn()}">
                        <h:panelGroup styleClass="table" layout="block">
                                <div class="table-header">
                                        <h:outputText value="#{msg.LOGIN_USER_LOGOUT_TITLE}" />
@@ -27,7 +27,6 @@
                                </h:panelGroup>
 
                                <p:commandButton
-                                       process="@form"
                                        type="submit"
                                        value="#{msg.BUTTON_USER_LOGOUT}"
                                        action="#{userLoginController.doUserLogout()}"
index 36796c609b1613190a3e67807c93d7f1beae0209..dc472a322ed208933e534e9251392ba034dd876a 100644 (file)
@@ -24,7 +24,7 @@
                                <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_ADDRESS_TITLE}" />
                        </div>
 
-                       <h:form id="form_user_change_email_address">
+                       <h:form>
                                <fieldset class="fieldset">
                                        <legend title="#{msg.LOGIN_CHANGE_EMAIL_LEGEND_TITLE}">
                                                <h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_LEGEND}" />
@@ -54,7 +54,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
                                                type="submit"
                                                value="#{msg.BUTTON_CHANGE_EMAIL_ADDRESS}"
                                                action="#{userEmailChangeController.doUserChangeEmailAddress()}"
index 2e859d8603e702a396e457307d0092e32afa9baa..d5c4ca5cb666fc38844c2255fdde42ea2af3d92d 100644 (file)
@@ -26,7 +26,7 @@
                </ui:fragment>
 
                <ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
-                       <h:form id="form_user_change_password">
+                       <h:form>
                                <h:panelGroup styleClass="table" layout="block" rendered="#{featureController.isFeatureEnabled('change_user_password')}">
                                        <div class="table-header">
                                                <h:outputText value="#{msg.LOGIN_CHANGE_PASSWORD_TITLE}" />
@@ -78,7 +78,6 @@
                                                        />
 
                                                <p:commandButton
-                                                       process="@form"
                                                        type="submit"
                                                        value="#{msg.BUTTON_USER_CHANGE_PASSWORD}"
                                                        action="#{userPasswordController.doChangePassword()}"
index 2ba734ff29fb9a254c6e5e63c432f1b2f71f6504..6eff3bdb71bcfaff09e6b8dcda7844a433c91db5 100644 (file)
@@ -35,7 +35,7 @@
                                <h:outputText value="#{msg.LOGIN_CHANGE_PERSONAL_DATA_TITLE}" />
                        </div>
 
-                       <h:form id="form_login_change_personal">
+                       <h:form>
                                <ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
 
                                <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
@@ -49,8 +49,6 @@
                                                />
 
                                        <p:commandButton
-                                               process="@form"
-                                               type="submit"
                                                value="#{msg.BUTTON_CHANGE_PERSONAL_DATA}"
                                                action="#{userController.doChangePersonalData()}"
                                                />