From: Roland Haeder Date: Fri, 25 Sep 2015 09:29:10 +0000 (+0200) Subject: tried to fix problem in admin area where no parent category shall be selectable.... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=89562413d498747e6f3f2cec9b2bb02683981aab;p=pizzaservice-war.git tried to fix problem in admin area where no parent category shall be selectable. maybe drop the fake category thing? Signed-off-by:Roland Häder --- diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index 1b1ad2a1..37a902e7 100644 Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar index 3758a7bc..539bac1d 100644 Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ diff --git a/lib/jshop-ee-lib.jar b/lib/jshop-ee-lib.jar index f7b46945..fd9eff88 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/shop/ShopWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/shop/ShopWebBean.java index 52e59682..5ed8e8a3 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/shop/ShopWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/shop/ShopWebBean.java @@ -83,19 +83,20 @@ public class ShopWebBean extends AbstractWebBean implements ShopWebController { @Override public List getAllCategoriesParent () throws FaceletException { // Get regular list - List deque = new LinkedList<>(); + List 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