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:
Gavin Cornwell
2006-05-02 10:44:51 +00:00
parent b9f82bee05
commit aa417e841f
64 changed files with 5448 additions and 9716 deletions

View File

@@ -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());
}
}