From f56a0c3ca825119eea959981cb81074b7f4e4fde Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 11 Apr 2017 12:11:07 +0200 Subject: [PATCH] Continued a bit: - added clear() method for clearing bean after form has been processed - added navigation rule MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../beans/country/PizzaAdminCountryWebRequestBean.java | 7 ++++--- web/WEB-INF/faces-config.xml | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) 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 -- 2.39.5