]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
tried to fix problem in admin area where no parent category shall be selectable....
authorRoland Haeder <roland@mxchange.org>
Fri, 25 Sep 2015 09:29:10 +0000 (11:29 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 25 Sep 2015 09:29:10 +0000 (11:29 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcoreee.jar
lib/jshop-core.jar
lib/jshop-ee-lib.jar
src/java/org/mxchange/pizzaapplication/beans/shop/ShopWebBean.java

index 1b1ad2a1e6da411ce125c30ebcb4f0de5b875363..37a902e7e287344bf9e0d02609a517bc832822dc 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index 3758a7bc625cfaa0a01c983d39d8494c8343fdd2..539bac1dd5b4261de6f544241490c07f02820210 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index f7b46945b71a7856e88a5b0c3cd0c244871e3c6c..fd9eff88281d61484ea708bcc35363f55d3fd80b 100644 (file)
Binary files a/lib/jshop-ee-lib.jar and b/lib/jshop-ee-lib.jar differ
index 52e59682439510a2f2c65c14e47bcc14c0969eb6..5ed8e8a3caeaa387d2afcbf3d01897d4ea872e86 100644 (file)
@@ -83,19 +83,20 @@ public class ShopWebBean extends AbstractWebBean implements ShopWebController {
        @Override
        public List<Category> getAllCategoriesParent () throws FaceletException {
                // Get regular list
-               List<Category> deque = new LinkedList<>();
+               List<Category> list = new LinkedList<>();
 
-               // Create fake entry
-               Category fake = new ProductCategory(0L, this.getMessageStringFromKey("ADMIN_CATEGORY_HAS_NO_PARENT"), null); //NOI18N
+               // Create null category
+               Category nullCategory = new ProductCategory();
+               nullCategory.setCategoryTitle(this.getMessageStringFromKey("ADMIN_CATEGORY_HAS_NO_PARENT")); //NOI18N
 
                // Add it
-               deque.add(fake);
+               list.add(nullCategory);
 
                // Add all
-               deque.addAll(this.getAllCategories());
+               list.addAll(this.getAllCategories());
 
                // Return it
-               return deque;
+               return list;
        }
 
        @Override