From: Roland Häder Date: Thu, 2 Apr 2020 13:38:24 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bb98eabee76abd3d26f1afd65a6c985eee8e9f7a;p=jfinancials-war.git Please cherry-pick: - rewrote admin-departments-list view to have working filters and sorting (wasn't done correctly) - also included a "global" search (all columns) - moved isDepartmentAlreadyAdded() to departmentListController to avoid getter for allDepartments being exposed in interface Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsAdminDepartmentWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsAdminDepartmentWebRequestBean.java index 27b15938..f4ec5365 100644 --- a/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsAdminDepartmentWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsAdminDepartmentWebRequestBean.java @@ -16,7 +16,6 @@ */ package org.mxchange.jfinancials.beans.business.department; -import java.util.List; import javax.ejb.EJB; import javax.enterprise.context.RequestScoped; import javax.enterprise.event.Event; @@ -31,10 +30,10 @@ import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice; import org.mxchange.jcontactsbusiness.model.department.AdminDepartmentSessionBeanRemote; import org.mxchange.jcontactsbusiness.model.department.BusinessDepartment; import org.mxchange.jcontactsbusiness.model.department.Department; -import org.mxchange.jcontactsbusiness.model.department.Departments; import org.mxchange.jcontactsbusiness.model.employee.Employable; import org.mxchange.jcontactsbusiness.model.headquarter.Headquarter; import org.mxchange.jfinancials.beans.BaseFinancialsBean; +import org.mxchange.jfinancials.beans.business.department.list.FinancialsDepartmentListWebViewtController; import org.mxchange.jusercore.model.user.User; /** @@ -74,12 +73,6 @@ public class FinancialsAdminDepartmentWebRequestBean extends BaseFinancialsBean */ private BasicData departmentCompany; - /** - * A general department controller (backing bean) - */ - @Inject - private FinancialsDepartmentWebRequestController departmentController; - /** * Assigned headquarter (if apply-able) */ @@ -95,6 +88,12 @@ public class FinancialsAdminDepartmentWebRequestBean extends BaseFinancialsBean */ private Employable departmentLead; + /** + * A general department controller (backing bean) + */ + @Inject + private FinancialsDepartmentListWebViewtController departmentListController; + /** * Owning user instance (which this department is assigned to) */ @@ -118,7 +117,7 @@ public class FinancialsAdminDepartmentWebRequestBean extends BaseFinancialsBean final Department department = this.createDepartment(); // Is the department not created yet? - if (this.isDepartmentCreatedByRequiredData(department)) { + if (this.departmentListController.isDepartmentAlreadyAdded(department)) { // Then show proper faces message this.showFacesMessage("form-admin-add-department:branchStreet", "ADMIN_DEPARTMENT_ALREADY_CREATED"); //NOI18N return; @@ -269,34 +268,4 @@ public class FinancialsAdminDepartmentWebRequestBean extends BaseFinancialsBean return department; } - /** - * Checks whether the given department is already found in local cache. - * Please note that this method fully relies on the cache, so you must - * always fire proper events that add/update/delete entries in cache. - *

- * @param department Department to check it's address - *

- * @return Whether the address has been found - */ - private boolean isDepartmentCreatedByRequiredData (final Department department) { - // Get full list from other bean - final List departments = this.departmentController.allDepartments(); - - // Default is not found - boolean isFound = false; - - // Now check each entry - for (final Department dep : departments) { - // Is same address? - if (Departments.isSameDepartment(dep, department)) { - // Found one - isFound = true; - break; - } - } - - // Return flag - return isFound; - } - } diff --git a/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsDepartmentWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsDepartmentWebRequestBean.java index 35884c8a..d2ecea68 100644 --- a/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsDepartmentWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsDepartmentWebRequestBean.java @@ -16,21 +16,9 @@ */ package org.mxchange.jfinancials.beans.business.department; -import fish.payara.cdi.jsr107.impl.NamedCache; -import java.text.MessageFormat; -import java.util.Comparator; -import java.util.LinkedList; -import java.util.List; -import javax.annotation.PostConstruct; -import javax.cache.Cache; import javax.ejb.EJB; import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; import javax.inject.Named; -import org.mxchange.jcontactsbusiness.events.department.added.ObservableDepartmentAddedEvent; -import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException; -import org.mxchange.jcontactsbusiness.model.department.Department; import org.mxchange.jcontactsbusiness.model.department.DepartmentSessionBeanRemote; import org.mxchange.jfinancials.beans.BaseFinancialsBean; @@ -48,150 +36,18 @@ public class FinancialsDepartmentWebRequestBean extends BaseFinancialsBean imple */ private static final long serialVersionUID = 5_028_697_360_461L; - /** - * A list of all departments - */ - private final List allDepartments; - /** * EJB for administrative purposes */ @EJB (lookup = "java:global/jfinancials-ejb/department!org.mxchange.jcontactsbusiness.model.department.DepartmentSessionBeanRemote") private DepartmentSessionBeanRemote departmentBean; - /** - * A list of all departments (globally) - */ - @Inject - @NamedCache (cacheName = "departmentCache") - private Cache departmentCache; - - /** - * A list of filtered departments - */ - private List filteredDepartments; - /** * Default constructor */ public FinancialsDepartmentWebRequestBean () { // Call super constructor super(); - - // Init list - this.allDepartments = new LinkedList<>(); - } - - /** - * Observes events being fired when a department has been added. - *

- * @param event Event being fired - *

- * @throws NullPointerException If the parameter or it's carried instance is - * null - * @throws IllegalArgumentException If the branchId is zero or lower - */ - public void afterDepartmentAddedEvent (@Observes final ObservableDepartmentAddedEvent event) { - // Validate parameter - if (null == event) { - // Throw NPE - throw new NullPointerException("event is null"); //NOI18N - } else if (event.getDepartment() == null) { - // Throw NPE again - throw new NullPointerException("event.department is null"); //NOI18N - } else if (event.getDepartment().getDepartmentId() == null) { - // Throw it again - throw new NullPointerException("event.department.branchId is null"); //NOI18N - } else if (event.getDepartment().getDepartmentId() < 1) { - // Throw IAE - throw new IllegalArgumentException(MessageFormat.format("event.department.branchId={0} is not valid", event.getDepartment().getDepartmentId())); //NOI18N - } - - // Add instance to cache - this.departmentCache.put(event.getDepartment().getDepartmentId(), event.getDepartment()); - this.allDepartments.add(event.getDepartment()); - } - - @Override - @SuppressWarnings ("ReturnOfCollectionOrArrayField") - public List allDepartments () { - return this.allDepartments; - } - - @Override - public Department findDepartmentById (final Long departmentId) throws DepartmentNotFoundException { - // Validate parameter - if (null == departmentId) { - // Throw NPE - throw new NullPointerException("departmentId is null"); //NOI18N - } else if (departmentId < 1) { - // Throw IAE - throw new IllegalArgumentException("departmentId=" + departmentId + " is invalid"); //NOI18N - } else if (!this.departmentCache.containsKey(departmentId)) { - // Not found - throw new DepartmentNotFoundException(departmentId); - } - - // Get it from cache - final Department department = this.departmentCache.get(departmentId); - - // Return it - return department; - } - - /** - * Getter for a list of filtered departments - *

- * @return Filtered departments - */ - @SuppressWarnings ("ReturnOfCollectionOrArrayField") - public List getFilteredDepartments () { - return this.filteredDepartments; - } - - /** - * Setter for a list of filtered departments - *

- * @param filteredDepartments Filtered departments - */ - @SuppressWarnings ("AssignmentToCollectionOrArrayFieldFromParameter") - public void setFilteredDepartments (final List filteredDepartments) { - this.filteredDepartments = filteredDepartments; - } - - /** - * Initializer method - */ - @PostConstruct - public void initializeList () { - // Is cache there? - if (!this.departmentCache.iterator().hasNext()) { - // Get whole list from EJB - final List departments = this.departmentBean.allDepartments(); - - // Add all - for (final Department department : departments) { - // Add it to cache - this.departmentCache.put(department.getDepartmentId(), department); - } - } - - // Is the list empty, but filled cache? - if (this.allDepartments.isEmpty() && this.departmentCache.iterator().hasNext()) { - // Build up list - for (final Cache.Entry currentEntry : this.departmentCache) { - // Add to list - this.allDepartments.add(currentEntry.getValue()); - } - - // Sort list - this.allDepartments.sort(new Comparator() { - @Override - public int compare (final Department department1, final Department department2) { - return department1.getDepartmentId() > department2.getDepartmentId() ? 1 : department1.getDepartmentId() < department2.getDepartmentId() ? -1 : 0; - } - }); - } } } diff --git a/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsDepartmentWebRequestController.java b/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsDepartmentWebRequestController.java index 5a8374d0..5a106a30 100644 --- a/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsDepartmentWebRequestController.java +++ b/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsDepartmentWebRequestController.java @@ -17,9 +17,6 @@ package org.mxchange.jfinancials.beans.business.department; import java.io.Serializable; -import java.util.List; -import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException; -import org.mxchange.jcontactsbusiness.model.department.Department; /** * An interface for general department controller @@ -28,24 +25,4 @@ import org.mxchange.jcontactsbusiness.model.department.Department; */ public interface FinancialsDepartmentWebRequestController extends Serializable { - /** - * Returns a list of all departments - *

- * @return A list of all departments - */ - List allDepartments (); - - /** - * Retrieves a single company department entity for given id number or - * throws a proper exception if not found. - *

- * @param departmentId Company department id to lookup - *

- * @return Company department instance - *

- * @throws DepartmentNotFoundException If the id number could not be - * looked up and solved into an entity - */ - Department findDepartmentById (final Long departmentId) throws DepartmentNotFoundException; - } diff --git a/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewBean.java b/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewBean.java new file mode 100644 index 00000000..37cffa55 --- /dev/null +++ b/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewBean.java @@ -0,0 +1,244 @@ +/* + * Copyright (C) 2017 - 2020 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 . + */ +package org.mxchange.jfinancials.beans.business.department.list; + +import fish.payara.cdi.jsr107.impl.NamedCache; +import java.text.MessageFormat; +import java.util.Comparator; +import java.util.LinkedList; +import java.util.List; +import javax.annotation.PostConstruct; +import javax.cache.Cache; +import javax.ejb.EJB; +import javax.enterprise.event.Observes; +import javax.faces.view.ViewScoped; +import javax.inject.Inject; +import javax.inject.Named; +import org.mxchange.jcontactsbusiness.events.department.added.ObservableDepartmentAddedEvent; +import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException; +import org.mxchange.jcontactsbusiness.model.department.Department; +import org.mxchange.jcontactsbusiness.model.department.DepartmentSessionBeanRemote; +import org.mxchange.jcontactsbusiness.model.department.Departments; +import org.mxchange.jfinancials.beans.BaseFinancialsBean; + +/** + * A list bean for departments + *

+ * @author Roland Häder + */ +@Named ("departmentListController") +@ViewScoped +public class FinancialsDepartmentListWebViewBean extends BaseFinancialsBean implements FinancialsDepartmentListWebViewtController { + + /** + * Serial number + */ + private static final long serialVersionUID = 5_028_697_360_462L; + + /** + * A list of all departments + */ + private final List allDepartments; + + /** + * EJB for administrative purposes + */ + @EJB (lookup = "java:global/jfinancials-ejb/department!org.mxchange.jcontactsbusiness.model.department.DepartmentSessionBeanRemote") + private DepartmentSessionBeanRemote departmentBean; + + /** + * A list of all departments (globally) + */ + @Inject + @NamedCache (cacheName = "departmentCache") + private transient Cache departmentCache; + + /** + * A list of filtered departments + */ + private List filteredDepartments; + + /** + * Currently selected department + */ + private Department selectedDepartment; + + /** + * Default constructor + */ + public FinancialsDepartmentListWebViewBean () { + // Call super constructor + super(); + + // Init list + this.allDepartments = new LinkedList<>(); + } + + /** + * Observes events being fired when a department has been added. + *

+ * @param event Event being fired + *

+ * @throws NullPointerException If the parameter or it's carried instance is + * null + * @throws IllegalArgumentException If the branchId is zero or lower + */ + public void afterDepartmentAddedEvent (@Observes final ObservableDepartmentAddedEvent event) { + // Validate parameter + if (null == event) { + // Throw NPE + throw new NullPointerException("event is null"); //NOI18N + } else if (event.getDepartment() == null) { + // Throw NPE again + throw new NullPointerException("event.department is null"); //NOI18N + } else if (event.getDepartment().getDepartmentId() == null) { + // Throw it again + throw new NullPointerException("event.department.branchId is null"); //NOI18N + } else if (event.getDepartment().getDepartmentId() < 1) { + // Throw IAE + throw new IllegalArgumentException(MessageFormat.format("event.department.branchId={0} is not valid", event.getDepartment().getDepartmentId())); //NOI18N + } + + // Add instance to cache + this.departmentCache.put(event.getDepartment().getDepartmentId(), event.getDepartment()); + this.getAllDepartments().add(event.getDepartment()); + } + + @Override + public Department findDepartmentById (final Long departmentId) throws DepartmentNotFoundException { + // Validate parameter + if (null == departmentId) { + // Throw NPE + throw new NullPointerException("departmentId is null"); //NOI18N + } else if (departmentId < 1) { + // Throw IAE + throw new IllegalArgumentException("departmentId=" + departmentId + " is invalid"); //NOI18N + } else if (!this.departmentCache.containsKey(departmentId)) { + // Not found + throw new DepartmentNotFoundException(departmentId); + } + + // Get it from cache + final Department department = this.departmentCache.get(departmentId); + + // Return it + return department; + } + + /** + * Returns a list of all departments + *

+ * @return A list of all departments + */ + @SuppressWarnings ("ReturnOfCollectionOrArrayField") + public List getAllDepartments () { + return this.allDepartments; + } + + /** + * Getter for a list of filtered departments + *

+ * @return Filtered departments + */ + @SuppressWarnings ("ReturnOfCollectionOrArrayField") + public List getFilteredDepartments () { + return this.filteredDepartments; + } + + /** + * Setter for a list of filtered departments + *

+ * @param filteredDepartments Filtered departments + */ + @SuppressWarnings ("AssignmentToCollectionOrArrayFieldFromParameter") + public void setFilteredDepartments (final List filteredDepartments) { + this.filteredDepartments = filteredDepartments; + } + + /** + * Getter for selected department + *

+ * @return Selected department + */ + public Department getSelectedDepartment () { + return this.selectedDepartment; + } + + /** + * Setter for selected department + *

+ * @param selectedDepartment Selected department + */ + public void setSelectedDepartment (final Department selectedDepartment) { + this.selectedDepartment = selectedDepartment; + } + + /** + * Initializer method + */ + @PostConstruct + public void initializeList () { + // Is cache there? + if (!this.departmentCache.iterator().hasNext()) { + // Get whole list from EJB + final List departments = this.departmentBean.allDepartments(); + + // Add all + for (final Department department : departments) { + // Add it to cache + this.departmentCache.put(department.getDepartmentId(), department); + } + } + + // Is the list empty, but filled cache? + if (this.getAllDepartments().isEmpty() && this.departmentCache.iterator().hasNext()) { + // Build up list + for (final Cache.Entry currentEntry : this.departmentCache) { + // Add to list + this.getAllDepartments().add(currentEntry.getValue()); + } + + // Sort list + this.getAllDepartments().sort(new Comparator() { + @Override + public int compare (final Department department1, final Department department2) { + return department1.getDepartmentId() > department2.getDepartmentId() ? 1 : department1.getDepartmentId() < department2.getDepartmentId() ? -1 : 0; + } + }); + } + } + + @Override + public boolean isDepartmentAlreadyAdded (final Department department) { + // Default is not found + boolean isFound = false; + + // Now check each entry + for (final Department currentDepartment : this.getAllDepartments()) { + // Is same address? + if (Departments.isSameDepartment(currentDepartment, department)) { + // Found one + isFound = true; + break; + } + } + + // Return flag + return isFound; + } + +} diff --git a/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewtController.java b/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewtController.java new file mode 100644 index 00000000..b256ae0c --- /dev/null +++ b/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewtController.java @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2017 - 2020 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 . + */ +package org.mxchange.jfinancials.beans.business.department.list; + +import java.io.Serializable; +import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException; +import org.mxchange.jcontactsbusiness.model.department.Department; + +/** + * An interface for general department controller + *

+ * @author Roland Häder + */ +public interface FinancialsDepartmentListWebViewtController extends Serializable { + + /** + * Retrieves a single company department entity for given id number or + * throws a proper exception if not found. + *

+ * @param departmentId Company department id to lookup + *

+ * @return Company department instance + *

+ * @throws DepartmentNotFoundException If the id number could not be looked + * up and solved into an entity + */ + Department findDepartmentById (final Long departmentId) throws DepartmentNotFoundException; + + /** + * Checks whether the given department is already found in local cache. + * Please note that this method fully relies on the cache, so you must + * always fire proper events that add/update/delete entries in cache. + *

+ * @param department Department to check it's address + *

+ * @return Whether the address has been found + */ + boolean isDepartmentAlreadyAdded (final Department department); + +} diff --git a/src/java/org/mxchange/jfinancials/converter/business/department/FinancialsDepartmentConverter.java b/src/java/org/mxchange/jfinancials/converter/business/department/FinancialsDepartmentConverter.java index dc501057..ddd779f6 100644 --- a/src/java/org/mxchange/jfinancials/converter/business/department/FinancialsDepartmentConverter.java +++ b/src/java/org/mxchange/jfinancials/converter/business/department/FinancialsDepartmentConverter.java @@ -24,8 +24,8 @@ import javax.faces.convert.ConverterException; import javax.faces.convert.FacesConverter; import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException; import org.mxchange.jcontactsbusiness.model.department.Department; -import org.mxchange.jfinancials.beans.business.department.FinancialsDepartmentWebRequestBean; -import org.mxchange.jfinancials.beans.business.department.FinancialsDepartmentWebRequestController; +import org.mxchange.jfinancials.beans.business.department.list.FinancialsDepartmentListWebViewBean; +import org.mxchange.jfinancials.beans.business.department.list.FinancialsDepartmentListWebViewtController; /** * Converter for company department id <-> instance @@ -38,16 +38,10 @@ public class FinancialsDepartmentConverter implements Converter { /** * Company department EJB */ - private static FinancialsDepartmentWebRequestController DEPARTMENT_CONTROLLER; + private static FinancialsDepartmentListWebViewtController DEPARTMENT_LIST_CONTROLLER; @Override public Department getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) { - // Is the instance there? - if (null == DEPARTMENT_CONTROLLER) { - // Get bean from CDI directly - DEPARTMENT_CONTROLLER = CDI.current().select(FinancialsDepartmentWebRequestBean.class).get(); - } - // Is the value null or empty? if ((null == submittedValue) || (submittedValue.trim().isEmpty())) { // Warning message @@ -64,8 +58,14 @@ public class FinancialsDepartmentConverter implements Converter { // Try to parse the value as long final Long departmentId = Long.valueOf(submittedValue); + // Is the instance there? + if (null == DEPARTMENT_LIST_CONTROLLER) { + // Get bean from CDI directly + DEPARTMENT_LIST_CONTROLLER = CDI.current().select(FinancialsDepartmentListWebViewBean.class).get(); + } + // Try to get user instance from it - companyDepartment = DEPARTMENT_CONTROLLER.findDepartmentById(departmentId); + companyDepartment = DEPARTMENT_LIST_CONTROLLER.findDepartmentById(departmentId); } catch (final NumberFormatException ex) { // Throw again throw new ConverterException(ex); diff --git a/src/java/org/mxchange/localization/generic_de_DE.properties b/src/java/org/mxchange/localization/generic_de_DE.properties index cea7dd9c..1339124d 100644 --- a/src/java/org/mxchange/localization/generic_de_DE.properties +++ b/src/java/org/mxchange/localization/generic_de_DE.properties @@ -1212,3 +1212,4 @@ ADMIN_MANUFACTURER_HEADER=Hersteller: ADMIN_ASSIGNED_MANUFACTURER_LABEL=Zugewiesener Hersteller: BARCODE=Barcode: ADMIN_CONTACT_DETAILS_HEADER=Kontaktdaten zu {0} {1} {2}: +ADMIN_DEPARTMENT_DETAILS_HEADER=Daten der Abteilung {0} (Id {1}): diff --git a/src/java/org/mxchange/localization/generic_en_US.properties b/src/java/org/mxchange/localization/generic_en_US.properties index 4dbf9617..b80ddb53 100644 --- a/src/java/org/mxchange/localization/generic_en_US.properties +++ b/src/java/org/mxchange/localization/generic_en_US.properties @@ -1123,3 +1123,4 @@ ADMIN_MANUFACTURER_HEADER=Manufacturer: ADMIN_ASSIGNED_MANUFACTURER_LABEL=Assigned manufacturer: BARCODE=Barcode: ADMIN_CONTACT_DETAILS_HEADER=Contact data of {0} {1} {2}: +ADMIN_DEPARTMENT_DETAILS_HEADER=Data of department {0} (Id {1}): diff --git a/web/WEB-INF/resources/tags/country/form_data/form_country_selector.tpl b/web/WEB-INF/resources/tags/country/form_data/form_country_selector.tpl index b3369930..0c154ca3 100644 --- a/web/WEB-INF/resources/tags/country/form_data/form_country_selector.tpl +++ b/web/WEB-INF/resources/tags/country/form_data/form_country_selector.tpl @@ -21,7 +21,7 @@ @@ -284,7 +284,7 @@ responsive="true" closeOnEscape="true" > - + diff --git a/web/admin/department/admin_department_list.xhtml b/web/admin/department/admin_department_list.xhtml index a52836bc..4f724549 100644 --- a/web/admin/department/admin_department_list.xhtml +++ b/web/admin/department/admin_department_list.xhtml @@ -18,15 +18,16 @@ - + - - + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + @@ -292,7 +345,7 @@ type="submit" value="#{msg.BUTTON_ADMIN_ADD_DEPARTMENT_DATA}" action="#{adminDepartmentController.addDepartment()}" - update=":master:form-list-department:departmentList" + update=":master:form-list-departments:departmentList" /> diff --git a/web/admin/mobile_provider/admin_mobile_provider_list.xhtml b/web/admin/mobile_provider/admin_mobile_provider_list.xhtml index 444cbce9..f56d61dc 100644 --- a/web/admin/mobile_provider/admin_mobile_provider_list.xhtml +++ b/web/admin/mobile_provider/admin_mobile_provider_list.xhtml @@ -100,7 +100,7 @@ >