From 00df3811b7d39a4b944f3d0a2e4cf7d5bb1b2a18 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 5 Mar 2016 14:36:15 +0100 Subject: [PATCH] updated jar(s) + called clear() remote method (later usage) --- lib/jshop-ee-lib.jar | Bin 7249 -> 7271 bytes .../beans/basket/BasketWebSessionBean.java | 19 +++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/jshop-ee-lib.jar b/lib/jshop-ee-lib.jar index 2759b9fffd61ca1dc78d11010651c02ae10ad008..cecc4c0642b57adb96c818c9d5acc1eee887a8eb 100644 GIT binary patch delta 644 zcmca;@!Wzpz?+$ci-CcIfx)pPbt10@vjdQ_n9pnuq;AQBsXrPZYO*?`5txo)v;fo7 z8STNeER+7^0~{Qa1(>*?d`B>y$m9T}^(LPa;h21jiHjF#j>r33^E#h(28%4>e+7~1 z7vzJ8ED&L5WCn)C7v;Y7A delta 538 zcmaEEanXV|z?+$ci-CcIf#Fg`@I+n>=8HheVm_F$(NXfc!7F7=6fyB;AdiB;Gg`FDUgewoq>m) zftQ_uZ*vs$RmRC@+4&})=Trvi+MLZgoe9if<#@{oW_;yb4G~$)Bg70A*}?w`BDGYI z4L?Mp+Eedg@t(ZPY%jA49i1;coCouoLmFBdn1 zvID`ii9`UHZkGr^^TZR0B(RL9q%@NU>*PQw1#n38Ng9BK4+4cBu|tK84EGE zZ(sm`uqy)sENQ$nIY25z0i?!Ubwb*DpgahBAe1mHX>8z`94Mha`Lz_pGqTdsOjG%R zLK>6b^UF@Im*xRm+XobG5(Em%Pd+8B4L0)It+{d=fJT9^6^fCQMZgLpM8zk2%ZRbf I76r)y0FkS#K>z>% diff --git a/src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebSessionBean.java index 05e8fe6b..1b2e114c 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebSessionBean.java @@ -143,6 +143,7 @@ public class BasketWebSessionBean implements BasketWebSessionController { // Trace message //this.getLogger().logTrace(MessageFormat.format("allItems: list={0} - EXIT!", list)); + // Return it return list; } @@ -169,6 +170,7 @@ public class BasketWebSessionBean implements BasketWebSessionController { // Trace message //this.getLogger().logTrace(MessageFormat.format("calculateCurrentItemPrice: totalPrice={0} - EXIT!", totalPrice)); + // Return it return totalPrice; } @@ -218,10 +220,20 @@ public class BasketWebSessionBean implements BasketWebSessionController { // Trace message //this.getLogger().logTrace(MessageFormat.format("calculateTotalPrice: totalPrice={0} - EXIT!", totalPrice)); + // Return final sum return totalPrice; } + @Override + public void clear () { + // Clear bean as well + this.basketBean.clear(); + + // Deligate to basket instance + this.basket.clear(); + } + @Override public String doChangeItem (final AddableBasketItem item) { // Trace message @@ -252,13 +264,6 @@ public class BasketWebSessionBean implements BasketWebSessionController { return targetPage; } - @Override - public void clear () { - // @TODO Also clear EJB - // Deligate to basket instance - this.basket.clear(); - } - @Override public AddableBasketItem getCurrentItem () { return this.currentItem; -- 2.39.5