From: Roland Haeder Date: Tue, 11 Apr 2017 10:11:07 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f56a0c3ca825119eea959981cb81074b7f4e4fde;p=pizzaservice-war.git Continued a bit: - added clear() method for clearing bean after form has been processed - added navigation rule Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/beans/country/PizzaAdminCountryWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/country/PizzaAdminCountryWebRequestBean.java index 5dbcc704..5e30ece0 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/country/PizzaAdminCountryWebRequestBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/country/PizzaAdminCountryWebRequestBean.java @@ -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); } diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index db0875af..dc93c86f 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -246,6 +246,10 @@ admin_delete_country /admin/country/admin_country_delete.xhtml + + admin_list_country + /admin/country/admin_country_list.xhtml + /admin/mobile_provider/admin_mobile_provider_list.xhtml