]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Continued a bit:
authorRoland Haeder <roland@mxchange.org>
Tue, 11 Apr 2017 10:11:07 +0000 (12:11 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 11 Apr 2017 10:28:56 +0000 (12:28 +0200)
- added clear() method for clearing bean after form has been processed
- added navigation rule

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/pizzaapplication/beans/country/PizzaAdminCountryWebRequestBean.java
web/WEB-INF/faces-config.xml

index 5dbcc704e4001f94b724f6c1752dcfc8e5640444..5e30ece0553c974ef5e4188e7ffacef0644a981e 100644 (file)
@@ -227,15 +227,16 @@ public class PizzaAdminCountryWebRequestBean extends BasePizzaController impleme
        }
 
        /**
-        * Clears this bean
+        * Clears this bean's data. This should be called after a form has been
+        * submitted and the processing of the form was successful.
         */
        private void clear () {
-               // Clear all fields
+               // Clear fields
                this.setCountryAbroadDialPrefix(null);
                this.setCountryCode(null);
                this.setCountryExternalDialPrefix(null);
                this.setCountryI18nKey(null);
-               this.setCountryIsLocalPrefixRequired(Boolean.FALSE);
+               this.setCountryIsLocalPrefixRequired(null);
                this.setCountryPhoneCode(null);
        }
 
index db0875af8727b28ffeb52f98ee7a2f367bcbb232..dc93c86fcd82529f9e60606a59718676f08cbf60 100644 (file)
                        <from-outcome>admin_delete_country</from-outcome>
                        <to-view-id>/admin/country/admin_country_delete.xhtml</to-view-id>
                </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_list_country</from-outcome>
+                       <to-view-id>/admin/country/admin_country_list.xhtml</to-view-id>
+               </navigation-case>
        </navigation-rule>
        <navigation-rule>
                <from-view-id>/admin/mobile_provider/admin_mobile_provider_list.xhtml</from-view-id>