// Fire event
this.addedCountryEvent.fire(new AdminEventCountryAdded(updatedCountry));
+ // Clear this bean
+ this.clear();
+
// Redirect to list
return "admin_list_country"; //NOI18N
}
return (!this.allCountries().isEmpty());
}
+ /**
+ * 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 fields
+ this.setCountryAbroadDialPrefix(null);
+ this.setCountryCode(null);
+ this.setCountryExternalDialPrefix(null);
+ this.setCountryI18nKey(null);
+ this.setCountryIsLocalPrefixRequired(null);
+ this.setCountryPhoneCode(null);
+ }
+
/**
* Checks if given country is already added by iterating over the whole list
* and try to find it.
<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>