From: Roland Haeder Date: Fri, 25 Sep 2015 12:36:50 +0000 (+0200) Subject: Need to clear these properties X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f8e8c2c11ff1996065ee4534881f2c9239294cf;p=pizzaservice-war.git Need to clear these properties Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java index ba3a6445..e275349f 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java @@ -97,6 +97,10 @@ public class AdminCategoryWebBean implements AdminCategoryWebController { // Also send it to the controller bean this.shopController.addCategory(updatedCategory); + + // Unset all older values + this.setCategoryTitle(""); //NOI18N + this.setParentCategory(null); } catch (final CategoryTitleAlreadyUsedException | CannotAddCategoryException ex) { // Continue to throw throw new FaceletException(ex);