- added clear() method for clearing bean after form has been processed
- added navigation rule
Signed-off-by: Roland Häder <roland@mxchange.org>
}
/**
- * 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);
}
<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>