02-05-2008 04:44 PM
02-25-2008 03:59 PM
02-26-2008 04:31 AM
<managed-bean>
<description>
The bean that backs up the Create Space Wizard
</description>
<managed-bean-name>CreateSpaceWizard</managed-bean-name>
<managed-bean-class>org.alfresco.sample.CreateCustomSpaceWizard</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>nodeService</property-name>
<value>#{NodeService}</value>
</managed-property>
…
<managed-property>
<property-name>namespaceService</property-name>
<value>#{NamespaceService}</value>
</managed-property>
</managed-bean>
package org.alfresco.sample;
import javax.faces.context.FacesContext;
import org.alfresco.service.namespace.QName;
import org.alfresco.web.app.AlfrescoNavigationHandler;
import org.alfresco.web.bean.repository.Node;
import org.alfresco.web.bean.spaces.CreateSpaceWizard;
public class CreateCustomSpaceWizard extends CreateSpaceWizard {
@Override
protected String doPostCommitProcessing(FacesContext context, String outcome) {
return getDefaultFinishOutcome() + AlfrescoNavigationHandler.OUTCOME_SEPARATOR + "dialog:setSpaceProperties";
}
}
<config>
<dialogs>
<dialog name="setSpaceProperties" page="/jsp/extension/edit-space-properties.jsp"
managed-bean="SetContentPropertiesDialog" icon="/images/icons/edit_properties_large.gif"
title-id="space_properties_title"
description-id="space_properties_desc" />
</dialogs>
</config>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<h:panelGrid columns="1" cellpadding="2" style="padding-top: 4px; padding-bottom: 4px;"
width="100%" rowClasses="wizardSectionHeading">
<h:outputText value=" #{msg.properties}" escape="false" />
</h:panelGrid>
<r:propertySheetGrid id="content-props" value="#{DialogManager.bean.editableNode}" var="editSpaceProps" columns="1" />
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.