From 509e29ba68cef3a7ba35db718df56274b4b98bb2 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 14 Jul 2017 14:42:04 +0200 Subject: [PATCH] it is beanHelper, not just adminHelper MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../PizzaAdminCustomerWebRequestBean.java | 12 ++-- .../customer/admin_customer_delete.xhtml | 4 +- web/admin/customer/admin_customer_edit.xhtml | 8 +-- web/admin/customer/admin_customer_list.xhtml | 2 +- web/admin/customer/admin_customer_show.xhtml | 58 +++++++++---------- 5 files changed, 42 insertions(+), 42 deletions(-) diff --git a/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaAdminCustomerWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaAdminCustomerWebRequestBean.java index c54df4fa..eda423ac 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaAdminCustomerWebRequestBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/customer/PizzaAdminCustomerWebRequestBean.java @@ -70,7 +70,7 @@ public class PizzaAdminCustomerWebRequestBean extends BasePizzaController implem * Bean helper instance */ @Inject - private PizzaWebRequestHelperController adminHelper; + private PizzaWebRequestHelperController beanHelper; /** * An event being fired when an administrator has added a new customer @@ -105,7 +105,7 @@ public class PizzaAdminCustomerWebRequestBean extends BasePizzaController implem @Override public String addCustomer () { // Are at least some fields added? - if ((this.adminHelper.getContact() == null) && (!this.isCustomerDataSet())) { + if ((this.beanHelper.getContact() == null) && (!this.isCustomerDataSet())) { // Not all customer data is set throw new FaceletException("Please provide minimum personal data: gender, first_name, family_name"); //NOI18N } @@ -114,9 +114,9 @@ public class PizzaAdminCustomerWebRequestBean extends BasePizzaController implem Contact contact; // Is the contact set in helper? - if (this.adminHelper.getContact() instanceof Contact) { + if (this.beanHelper.getContact() instanceof Contact) { // Get from helper - contact = this.adminHelper.getContact(); + contact = this.beanHelper.getContact(); } else { // Get new contact instance contact = this.adminContactController.createContactInstance(); @@ -133,12 +133,12 @@ public class PizzaAdminCustomerWebRequestBean extends BasePizzaController implem try { // Add/link customer and return updated - if (this.adminHelper.getContact() instanceof Contact) { + if (this.beanHelper.getContact() instanceof Contact) { // Link customer updatedCustomer = this.adminCustomerBean.linkCustomer(customer); // Remove contact instance - this.adminHelper.setContact(null); + this.beanHelper.setContact(null); } else { // Add new customer instance updatedCustomer = this.adminCustomerBean.addCustomer(customer); diff --git a/web/admin/customer/admin_customer_delete.xhtml b/web/admin/customer/admin_customer_delete.xhtml index 96ea5af1..97a00fee 100644 --- a/web/admin/customer/admin_customer_delete.xhtml +++ b/web/admin/customer/admin_customer_delete.xhtml @@ -9,8 +9,8 @@ > - - + + diff --git a/web/admin/customer/admin_customer_edit.xhtml b/web/admin/customer/admin_customer_edit.xhtml index c7c6d802..31f92a8e 100644 --- a/web/admin/customer/admin_customer_edit.xhtml +++ b/web/admin/customer/admin_customer_edit.xhtml @@ -9,8 +9,8 @@ > - - + + @@ -23,9 +23,9 @@ - + - +
diff --git a/web/admin/customer/admin_customer_list.xhtml b/web/admin/customer/admin_customer_list.xhtml index 91d0bdc8..4dce8ecb 100644 --- a/web/admin/customer/admin_customer_list.xhtml +++ b/web/admin/customer/admin_customer_list.xhtml @@ -98,7 +98,7 @@
- + diff --git a/web/admin/customer/admin_customer_show.xhtml b/web/admin/customer/admin_customer_show.xhtml index c056eca9..d73f4624 100644 --- a/web/admin/customer/admin_customer_show.xhtml +++ b/web/admin/customer/admin_customer_show.xhtml @@ -9,8 +9,8 @@ > - - + + @@ -23,31 +23,31 @@ - + - + - + - + - + - + @@ -55,7 +55,7 @@ - + @@ -63,13 +63,13 @@ - + - + @@ -77,13 +77,13 @@ - + - + @@ -91,7 +91,7 @@ - + @@ -99,69 +99,69 @@ - + - + - + - + - + - + - + - + - + - - + + - + @@ -169,14 +169,14 @@
- +
- - + +
-- 2.39.5