]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Need to clear these properties
authorRoland Haeder <roland@mxchange.org>
Fri, 25 Sep 2015 12:36:50 +0000 (14:36 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 25 Sep 2015 12:36:50 +0000 (14:36 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java

index ba3a64455f6e0150319f1d02236e6cfc74a6fbf4..e275349fb49be1bd172a1dd280bb690a68ec82fd 100644 (file)
@@ -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);