]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Fri, 11 Sep 2015 09:56:40 +0000 (11:56 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 11 Sep 2015 09:56:40 +0000 (11:56 +0200)
- cleanup from some older code (the caching needs to be back)
- no need to compare against true
- updated jar(s)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcore-ee-logger.jar
lib/jshop-core.jar
src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebBean.java
web/index.xhtml

index 4edcfadfaec1a7ceec3691a58c99a6fa866423db..3c1fb7f8b083e1a84be405024abc1be40c559475 100644 (file)
Binary files a/lib/jcore-ee-logger.jar and b/lib/jcore-ee-logger.jar differ
index 293c57720a466e7fe15a431be20b7c93febff8b6..d3ea1ca0994bd84f9efc0bb10e78f65e106694f5 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index 58697239fb1cfdd032ecaf8db70988ba6f1e0d54..c0cb2ed5b789b520fd931cb3066551657594e729 100644 (file)
@@ -89,18 +89,6 @@ public class BasketWebBean extends BaseFrameworkBean implements BasketWebControl
                        throw new NullPointerException("product is null"); //NOI18N
                }
 
-               // Has the "cache" some entries?
-               if (!this.getBasketBean().isEmpty()) {
-                       // Generate fake instance
-                       AddableBasketItem item = new BasketItem(product);
-
-                       // Then ask it about it
-                       if (this.getBasketBean().isAdded(item)) {
-                               // Found it
-                               return true;
-                       }
-               }
-
                // Generate fake instance
                AddableBasketItem item = new BasketItem(product);
 
index 3e50f8c6588e2d9f8740963f9efd2a58a6ef592b..e612d608829881b47ae9fd7e42c2d7891c564f2c 100644 (file)
@@ -64,7 +64,7 @@
                        </table>
 
                        <ui:repeat var="product" value="#{controller.availableProducts}">
-                               <ui:fragment rendered="#{basket.isProductAdded(product) == true}">
+                               <ui:fragment rendered="#{basket.isProductAdded(product)}">
                                        <table class="basket_item_table">
                                                <tbody>
                                                        <tr>