From: Roland Haeder Date: Sat, 5 Mar 2016 13:36:15 +0000 (+0100) Subject: updated jar(s) + called clear() remote method (later usage) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=00df3811b7d39a4b944f3d0a2e4cf7d5bb1b2a18;p=pizzaservice-war.git updated jar(s) + called clear() remote method (later usage) --- diff --git a/lib/jshop-ee-lib.jar b/lib/jshop-ee-lib.jar index 2759b9ff..cecc4c06 100644 Binary files a/lib/jshop-ee-lib.jar and b/lib/jshop-ee-lib.jar differ 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;