Added new command processor to execute UI Action based commands

For new commands such as 'createwebcontent' - launches the Create Web Content wizard via URL.
Some clean up of JSF Bean name constants.
Minor fixes to webscript templates for demo.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5595 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-05-02 11:06:36 +00:00
parent f307ecab0a
commit a141b2d609
14 changed files with 370 additions and 12 deletions

View File

@@ -47,6 +47,8 @@ import org.apache.commons.logging.LogFactory;
*/
public class DashboardManager
{
public static final String BEAN_NAME = "DashboardManager";
private static Log logger = LogFactory.getLog(DashboardManager.class);
private static final String PREF_DASHBOARD = "dashboard";

View File

@@ -46,6 +46,8 @@ import org.alfresco.web.ui.common.component.UIActionLink;
*/
public final class DialogManager
{
public final static String BEAN_NAME = "DialogManager";
private DialogState currentDialogState;
private Map<String, String> paramsToApply;

View File

@@ -1066,7 +1066,7 @@ public class AVMBrowseBean implements IContextListener
// pass form ID to the wizard - to be picked up in init()
FacesContext fc = FacesContext.getCurrentInstance();
WizardManager manager = (WizardManager)FacesHelper.getManagedBean(fc, "WizardManager");
WizardManager manager = (WizardManager)FacesHelper.getManagedBean(fc, WizardManager.BEAN_NAME);
manager.setupParameters(event);
fc.getApplication().getNavigationHandler().handleNavigation(fc, null, "wizard:createWebContent");
}

View File

@@ -52,6 +52,9 @@ import org.apache.commons.logging.LogFactory;
*/
public final class WizardManager
{
/** public JSF bean name */
public final static String BEAN_NAME = "WizardManager";
private static Log logger = LogFactory.getLog(WizardManager.class);
private WizardState currentWizardState;