]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
updated jar(s) + called clear() remote method (later usage)
authorRoland Haeder <roland@mxchange.org>
Sat, 5 Mar 2016 13:36:15 +0000 (14:36 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 5 Mar 2016 13:36:15 +0000 (14:36 +0100)
lib/jshop-ee-lib.jar
src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebSessionBean.java

index 2759b9fffd61ca1dc78d11010651c02ae10ad008..cecc4c0642b57adb96c818c9d5acc1eee887a8eb 100644 (file)
Binary files a/lib/jshop-ee-lib.jar and b/lib/jshop-ee-lib.jar differ
index 05e8fe6be4e9313660ae98e8cfdf661943581e16..1b2e114c6d930e813d180ee5a0a406f716c339b0 100644 (file)
@@ -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;