| | |
| | | |
| | | if (throwable != null) { |
| | | UserDataException ude = (UserDataException) throwable; |
| | | displayError(ude.getLocalizedMessage(), getMsg("error-title")); |
| | | if (ude instanceof UserDataConfirmationException) |
| | | { |
| | | if (displayConfirmation(ude.getLocalizedMessage(), |
| | | getMsg("confirmation-title"))) |
| | | { |
| | | setCurrentStep(application.getNextWizardStep(cStep)); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | displayError(ude.getLocalizedMessage(), getMsg("error-title")); |
| | | } |
| | | } else { |
| | | setCurrentStep(application.getNextWizardStep(cStep)); |
| | | } |
| | |
| | | * The following three methods are just commodity methods to get localized |
| | | * messages. |
| | | * @param key String key |
| | | * @param args String[] args |
| | | * @return String message |
| | | */ |
| | | private String getMsg(String key, String[] args) |
| | | { |
| | | return getI18n().getMsg(key, args); |
| | | } |
| | | |
| | | /** |
| | | * The following three methods are just commodity methods to get localized |
| | | * messages. |
| | | * @param key String key |
| | | * @param t Throwable throwable |
| | | * @return String message |
| | | */ |