From 266c973f81895eae08fdb5f537d5b5bc2894f137 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 25 Sep 2015 14:34:15 +0200 Subject: [PATCH] =?utf8?q?Continued:=20-=20added=20category=20converter=20?= =?utf8?q?-=20updated=20controller=20properties=20to=20latest=20API=20chan?= =?utf8?q?ges=20(e.g.=20house=20number=20can=20be=20Short)=20-=20renamed?= =?utf8?q?=20some=20attributes=20for=20better=20reading=20-=20handled=20ov?= =?utf8?q?er=20updated=20objects=20other=20beans=20-=20added=20=20to=20have=20a=20"null=20category"=20back,=20thanks=20t?= =?utf8?q?o=20my=20teacher=20-=20removed=20no=20longer=20"null=20category"?= =?utf8?q?=20stuff=20from=20controller=20-=20renamed=20more=20in=20templat?= =?utf8?q?es=20-=20updated=20jars=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcore.jar | Bin 31990 -> 32286 bytes lib/jcoreee.jar | Bin 17745 -> 17745 bytes lib/jshop-core.jar | Bin 46076 -> 48641 bytes lib/jshop-ee-lib.jar | Bin 7308 -> 7400 bytes .../beans/category/AdminCategoryWebBean.java | 6 +++--- .../beans/customer/CustomerWebBean.java | 6 +++--- .../beans/customer/CustomerWebController.java | 4 ++-- .../beans/product/AdminProductWebBean.java | 12 ++++++------ .../beans/shop/ShopWebBean.java | 13 +------------ .../admin/admin_category_selection_box.tpl | 6 +++--- .../admin_parent_category_selection_box.tpl | 3 ++- 11 files changed, 20 insertions(+), 30 deletions(-) diff --git a/lib/jcore.jar b/lib/jcore.jar index 2223e57f31b8a3d8f755f4d75191b1e49172076b..a59d0c6d95b82ca1a27d0f31a2525956e8ba2819 100644 GIT binary patch delta 7115 zcmbtZd3;pW_5a?PN#4twmkqL!g(M^)djeSrSx5qyge4I600BZ66Cec0BoHDn!Ce#t zuWczR1xqWo6tPp$)}mOIE^4b?Y=8c2E8Xm`7PUWHtJJ0Ey!Qx`ai;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>m;w+Kf&kw>xLV5Sje|1= z=5I*ELKmtU$_0h*|FGsfso)4SVIECJ1x1zMXmHzS#0eyh?=x}7WJ&Mj1m08x1t<$v zEol&@NV=pX1$;d(J9~>g@8{+5Ue~qyN4@beuaVH!ZEZ8%rRYjkCiKONPi1jmLLy(V z64Tf(VvGvInaVgRwnxjG`}7HXi5`3nijS|dtve?2#(D7WA>MSpqL$g)dd00uMie~YDQ(L9vOZl zMIIYWk}ZRI3QO1T)(oB_CVnbB7~hab2b+|#zSB7&4(jK}(>cj$3JcAyd^aaZ)((X$ zJZpyHO&_I?bse_Z<>4XM*zZ}g^3XMu3Gp+}!(N?yYp7A#OFbHJ=zZ$rr^|=bCV3#r=PXJP+oE5*PE%OvO0%9j9-(=X8B%jbhxr bGg~ow?C2gEKW$Ttyun}G86Q~G!@d6p(F)k) diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index 37a902e7e287344bf9e0d02609a517bc832822dc..648886a7db3c89adffaf81a8a240feabc2ae530a 100644 GIT binary patch delta 333 zcmccE#dxuckte{LnT3mifrEkJVah}vO{NDa6V0bH0ofN6K;$P)AURo<(GWxhFj|AC zUPcEHb)L}=M9DKbL3oCf1DMz+>GGf$36wURyv~Jv@@pn8kh1Sg9zbfdBXckdh@QrN zmIFkm3QXbw(LZI>SV6R+(tb`5{Yd)_SltDKMzFeI%YPvLY-yW lh%$3Z0a0_DvOpAvb0diAcFqJ*-<-=qRK80#h`Qra3ILF@f205a delta 333 zcmccE#dxuckte{LnT3mifrEj;H+mwECX-L}MDyuPK=uU%5cx?HNKTezGz3urjMgBk zm(c-4ooDm|QSwYq5T4=W04DZHx;!XG0;LTnuXACa{F;dir0hGB2awwA$Q;Z9qNlN+ z#C|i3+5Y=Gs4WiE42Y@Jfhd2;b?+^sx$xMFl0Cso1gUn=qM>CLUyJG~1dgvGo lqRgC9K-3(kED*)v+z6t&oijnyH|KH?mG6=bqVBkq0sv~&XB+?k diff --git a/lib/jshop-core.jar b/lib/jshop-core.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SS7ubLY{I9|ESwVhgkiqvvI6(Z# zFGMYYex9r>2KG~`m;p#|x)|7_m&BYwJaKVP5S1hz0HU^thk>XB37N?n5@rx)5LiMY z5Ja&{f~hFUTr@vkk<13kJ4(qgePW;dfnR=dos@|J$WN0V$iDCf`Uiwv84zGe<0DS6 zLIoDV$+2AGlVo_n>QTY~p`2k!;{+a{dUarM=!2}9D=ouR!4DL11?mI|@X5$9r3!+L f1jfo_79o(4Ac+c~M41RwLVWTW88NmxQIN?1Cxe*8 diff --git a/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java index 3232a844..ba3a6445 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java @@ -54,7 +54,7 @@ public class AdminCategoryWebBean implements AdminCategoryWebController { * Shop bean */ @Inject - private ShopWebController controller; + private ShopWebController shopController; /////////////////////// Properties ///////////////////// /** @@ -93,10 +93,10 @@ public class AdminCategoryWebBean implements AdminCategoryWebController { category.setCategoryTitle(this.getCategoryTitle()); // Deligate to remote bean - this.categoryBean.doAdminAddCategory(category); + Category updatedCategory = this.categoryBean.doAdminAddCategory(category); // Also send it to the controller bean - this.controller.addCategory(category); + this.shopController.addCategory(updatedCategory); } catch (final CategoryTitleAlreadyUsedException | CannotAddCategoryException ex) { // Continue to throw throw new FaceletException(ex); diff --git a/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java index b9ccd5cc..eb946987 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java @@ -102,7 +102,7 @@ public class CustomerWebBean implements CustomerWebController { /** * House number */ - private Long houseNumber; + private Short houseNumber; /** * Phone number @@ -261,12 +261,12 @@ public class CustomerWebBean implements CustomerWebController { } @Override - public Long getHouseNumber () { + public Short getHouseNumber () { return this.houseNumber; } @Override - public void setHouseNumber (final Long houseNumber) { + public void setHouseNumber (final Short houseNumber) { this.houseNumber = houseNumber; } diff --git a/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebController.java b/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebController.java index cc6c07ea..cdc51756 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebController.java +++ b/src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebController.java @@ -165,14 +165,14 @@ public interface CustomerWebController extends Serializable { * * @return the houseNumber */ - public Long getHouseNumber (); + public Short getHouseNumber (); /** * House number * * @param houseNumber the houseNumber to set */ - public void setHouseNumber (final Long houseNumber); + public void setHouseNumber (final Short houseNumber); /** * Phone number diff --git a/src/java/org/mxchange/pizzaapplication/beans/product/AdminProductWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/product/AdminProductWebBean.java index 8c6b654c..49392973 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/product/AdminProductWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/product/AdminProductWebBean.java @@ -49,14 +49,14 @@ public class AdminProductWebBean implements AdminProductWebController { /** * Remote bean for products */ - private final AdminProductSessionBeanRemote productBean; + private final AdminProductSessionBeanRemote productRemoteBean; ////////////////////// Bean injections /////////////////////// /** * Shop bean */ @Inject - private ShopWebController controller; + private ShopWebController shopController; /////////////////////// Properties ///////////////////// /** @@ -89,7 +89,7 @@ public class AdminProductWebBean implements AdminProductWebController { Context context = new InitialContext(); // Try to lookup the bean - this.productBean = (AdminProductSessionBeanRemote) context.lookup("ejb/stateless-admin-product"); //NOI18N + this.productRemoteBean = (AdminProductSessionBeanRemote) context.lookup("ejb/stateless-admin-product"); //NOI18N } catch (final NamingException e) { // Throw it again throw new FaceletException(e); @@ -109,10 +109,10 @@ public class AdminProductWebBean implements AdminProductWebController { product.setProductTitle(this.getProductTitle()); // Call bean - this.productBean.doAdminAddProduct(product); + Product updatedProduct = this.productRemoteBean.doAdminAddProduct(product); // Add to shop controller - this.controller.addProduct(product); + this.shopController.addProduct(updatedProduct); // Set all to null this.setProductAvailability(Boolean.FALSE); @@ -128,7 +128,7 @@ public class AdminProductWebBean implements AdminProductWebController { @Override public List getAllProducts () throws FaceletException { // Call bean - return this.productBean.getAllProducts(); + return this.productRemoteBean.getAllProducts(); } @Override diff --git a/src/java/org/mxchange/pizzaapplication/beans/shop/ShopWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/shop/ShopWebBean.java index 5ed8e8a3..1dd2ac50 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/shop/ShopWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/shop/ShopWebBean.java @@ -29,7 +29,6 @@ import javax.naming.InitialContext; import javax.naming.NamingException; import org.mxchange.jshopcore.model.category.Category; import org.mxchange.jshopcore.model.category.CategorySessionBeanRemote; -import org.mxchange.jshopcore.model.category.ProductCategory; import org.mxchange.jshopcore.model.product.Product; import org.mxchange.jshopcore.model.product.ProductSessionBeanRemote; import org.mxchange.pizzaapplication.beans.AbstractWebBean; @@ -83,17 +82,7 @@ public class ShopWebBean extends AbstractWebBean implements ShopWebController { @Override public List getAllCategoriesParent () throws FaceletException { // Get regular list - List list = new LinkedList<>(); - - // Create null category - Category nullCategory = new ProductCategory(); - nullCategory.setCategoryTitle(this.getMessageStringFromKey("ADMIN_CATEGORY_HAS_NO_PARENT")); //NOI18N - - // Add it - list.add(nullCategory); - - // Add all - list.addAll(this.getAllCategories()); + List list = new LinkedList<>(this.getAllCategories()); // Return it return list; diff --git a/web/WEB-INF/templates/admin/admin_category_selection_box.tpl b/web/WEB-INF/templates/admin/admin_category_selection_box.tpl index d91cc209..9235e952 100644 --- a/web/WEB-INF/templates/admin/admin_category_selection_box.tpl +++ b/web/WEB-INF/templates/admin/admin_category_selection_box.tpl @@ -4,8 +4,8 @@ xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"> - - - + + + diff --git a/web/WEB-INF/templates/admin/admin_parent_category_selection_box.tpl b/web/WEB-INF/templates/admin/admin_parent_category_selection_box.tpl index 15ce79e4..94fb50b5 100644 --- a/web/WEB-INF/templates/admin/admin_parent_category_selection_box.tpl +++ b/web/WEB-INF/templates/admin/admin_parent_category_selection_box.tpl @@ -4,7 +4,8 @@ xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"> - + + -- 2.39.5