mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Added error-message-id attribute to dialog and wizard framework
- Added error component to container pages - Removed error component from each dialog/wizard page - Fixed problem where dialog or wizard would not work after an error git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2872 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -90,6 +90,9 @@ public abstract class BaseDialogBean implements IDialogBean
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
// reset the flag so we can re-attempt the operation
|
||||
isFinished = false;
|
||||
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception ex) {}
|
||||
Utils.addErrorMessage(formatErrorMessage(e));
|
||||
|
@@ -94,6 +94,17 @@ public class DialogManager
|
||||
return this.currentDialogConfig.getIcon();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the error message to use in error conditions
|
||||
*
|
||||
* @return The error message
|
||||
*/
|
||||
public String getErrorMessage()
|
||||
{
|
||||
return Application.getMessage(FacesContext.getCurrentInstance(),
|
||||
this.currentDialogConfig.getErrorMessageId());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the resolved title to use for the dialog
|
||||
*
|
||||
|
@@ -115,6 +115,17 @@ public class WizardManager
|
||||
return this.currentWizardConfig.getIcon();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the error message to use in error conditions
|
||||
*
|
||||
* @return The error message
|
||||
*/
|
||||
public String getErrorMessage()
|
||||
{
|
||||
return Application.getMessage(FacesContext.getCurrentInstance(),
|
||||
this.currentWizardConfig.getErrorMessageId());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the resolved title to use for the wizard
|
||||
*
|
||||
|
Reference in New Issue
Block a user