mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
converted new rule/run action wizard to new framework
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,8 +23,6 @@ import org.alfresco.web.ui.common.Utils;
|
||||
*/
|
||||
public abstract class BaseDialogBean implements IDialogBean
|
||||
{
|
||||
protected static final String ERROR_ID = "error_generic";
|
||||
|
||||
// services common to most dialogs
|
||||
protected BrowseBean browseBean;
|
||||
protected NavigationBean navigator;
|
||||
@@ -177,6 +175,14 @@ public abstract class BaseDialogBean implements IDialogBean
|
||||
return outcome;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The error message lookup id
|
||||
*/
|
||||
protected String getErrorMessageId()
|
||||
{
|
||||
return "error_generic";
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a formatted exception string for the given exception
|
||||
*
|
||||
@@ -186,7 +192,7 @@ public abstract class BaseDialogBean implements IDialogBean
|
||||
protected String formatErrorMessage(Throwable exception)
|
||||
{
|
||||
return MessageFormat.format(Application.getMessage(
|
||||
FacesContext.getCurrentInstance(), ERROR_ID),
|
||||
FacesContext.getCurrentInstance(), getErrorMessageId()),
|
||||
exception.getMessage());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user