diff --git a/source/java/org/alfresco/web/bean/wcm/CreateFormWizard.java b/source/java/org/alfresco/web/bean/wcm/CreateFormWizard.java index f426be4ba2..743184e29f 100644 --- a/source/java/org/alfresco/web/bean/wcm/CreateFormWizard.java +++ b/source/java/org/alfresco/web/bean/wcm/CreateFormWizard.java @@ -71,6 +71,7 @@ import org.alfresco.web.ui.common.Utils; import org.alfresco.web.ui.common.component.UIListItem; import org.alfresco.web.ui.wcm.WebResources; import org.apache.commons.io.FilenameUtils; +import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.xerces.xs.XSConstants; @@ -78,18 +79,19 @@ import org.apache.xerces.xs.XSElementDeclaration; import org.apache.xerces.xs.XSModel; import org.apache.xerces.xs.XSNamedMap; import org.w3c.dom.Document; - + /** * Bean implementation for the "Create XML Form" dialog * * @author arielb + * @author Arseny Kovalchuk (The fixer of the issue https://issues.alfresco.com/jira/browse/ETWOTWO-600,601) */ -public class CreateFormWizard extends BaseWizardBean +public class CreateFormWizard extends BaseWizardBean { ///////////////////////////////////////////////////////////////////////////// - private static final long serialVersionUID = 4038447699556408567L; + private static final long serialVersionUID = -7133077371875949483L; /** * Simple wrapper class to represent a form data renderer @@ -107,6 +109,7 @@ public class CreateFormWizard extends BaseWizardBean private final String mimetypeForRendition; private final String outputPathPatternForRendition; private final RenderingEngine renderingEngine; + private final String renderingEngineDescriptionAttribute; public RenderingEngineTemplateData(final RenderingEngineTemplate ret) { @@ -118,6 +121,7 @@ public class CreateFormWizard extends BaseWizardBean this.outputPathPatternForRendition = ret.getOutputPathPattern(); this.mimetypeForRendition = ret.getMimetypeForRendition(); this.renderingEngine = ret.getRenderingEngine(); + this.renderingEngineDescriptionAttribute = buildREDescriptionAttribute(); } public RenderingEngineTemplateData(final File file, @@ -136,6 +140,7 @@ public class CreateFormWizard extends BaseWizardBean this.outputPathPatternForRendition = outputPathPatternForRendition; this.mimetypeForRendition = mimetypeForRendition; this.renderingEngine = renderingEngine; + this.renderingEngineDescriptionAttribute = buildREDescriptionAttribute(); } public String getOutputPathPatternForRendition() @@ -178,6 +183,11 @@ public class CreateFormWizard extends BaseWizardBean return this.renderingEngine; } + public String getRenderingEngineDescriptionAttribute() + { + return this.renderingEngineDescriptionAttribute; + } + public String toString() { return (this.getClass().getName() + "{" + @@ -187,6 +197,23 @@ public class CreateFormWizard extends BaseWizardBean "renderingEngine: " + this.getRenderingEngine().getName() + "}"); } + + private String buildREDescriptionAttribute() + { + FacesContext fc = FacesContext.getCurrentInstance(); + StringBuilder attribute = new StringBuilder(255); + attribute.append(DescriptionAttributeHelper.getTableBegin()); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "description", + DescriptionAttributeHelper.getDescriptionNotEmpty(fc, this.getDescription()))); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "rendering_engine_type", + this.getRenderingEngine().getName())); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "output_path_pattern", + this.getOutputPathPatternForRendition())); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "mimetype_for_renditions", + this.getMimetypeForRendition())); + attribute.append(DescriptionAttributeHelper.getTableEnd()); + return attribute.toString(); + } } ///////////////////////////////////////////////////////////////////////////// @@ -219,6 +246,8 @@ public class CreateFormWizard extends BaseWizardBean private String renderingEngineTemplateName = null; private String renderingEngineTemplateTitle = null; private String renderingEngineTemplateDescription = null; + private String formDescriptionAttribute = null; + private String workflowDescriptionAttribute = null; private RenderingEngine renderingEngine = null; protected transient DataModel renderingEngineTemplatesDataModel; @@ -407,6 +436,9 @@ public class CreateFormWizard extends BaseWizardBean this.defaultWorkflowName = null; this.defaultWorkflowChoices = null; this.applyDefaultWorkflow = true; + this.formDescriptionAttribute = null; + this.workflowDescriptionAttribute = null; + } @Override @@ -493,6 +525,36 @@ public class CreateFormWizard extends BaseWizardBean } /** + * + * @return Returns HTML code of the formDescriptionAttribute + * for the attribute "description" of the tag. + * See create-form-wizard/summary.jsp + */ + public String getFormDescriptionAttribute() + { + if (StringUtils.isEmpty(formDescriptionAttribute)) + { + this.formDescriptionAttribute = buildFormDescriptionAttribute(); + } + return this.formDescriptionAttribute; + } + + /** + * + * @return Returns HTML code of the formDescriptionAttribute + * for the attribute "description" of the tag. + * See create-form-wizard/summary.jsp + */ + public String getWorkflowDescriptionAttribute() + { + if (StringUtils.isEmpty(workflowDescriptionAttribute)) + { + this.workflowDescriptionAttribute = buildWorkflowDescriptionAttribute(); + } + return this.workflowDescriptionAttribute; + } + + /** * @return Returns the output path for the rendition. */ public String getOutputPathPatternForRendition() @@ -1252,4 +1314,47 @@ public class CreateFormWizard extends BaseWizardBean final FileUploadBean fileBean = this.getFileUploadBean(id); return fileBean != null ? fileBean.getFile() : null; } + + /** + * + * @return Returns a HTML code for "description" attribute + */ + private String buildFormDescriptionAttribute() + { + FacesContext fc = FacesContext.getCurrentInstance(); + StringBuilder attribute = new StringBuilder(255); + attribute.append(DescriptionAttributeHelper.getTableBegin()); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "description", + DescriptionAttributeHelper.getDescriptionNotEmpty(fc, getFormDescription()))); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "schema_root_element_name", + getSchemaRootElementName())); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "output_path_pattern", + getOutputPathPatternForFormInstanceData())); + attribute.append(DescriptionAttributeHelper.getTableEnd()); + return attribute.toString(); + } + /** + * + * @return Returns a HTML code for "description" attribute + */ + private String buildWorkflowDescriptionAttribute() + { + FacesContext fc = FacesContext.getCurrentInstance(); + StringBuilder attribute = new StringBuilder(255); + attribute.append(DescriptionAttributeHelper.getTableBegin()); + + // get workflow description + String desc = null; + WorkflowDefinition def = getDefaultWorkflowDefinition(); + if (def != null) + { + desc = def.getDescription(); + } + + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "description", + DescriptionAttributeHelper.getDescriptionNotEmpty(fc, desc))); + attribute.append(DescriptionAttributeHelper.getTableEnd()); + return attribute.toString(); + } + } diff --git a/source/java/org/alfresco/web/bean/wcm/CreateWebContentWizard.java b/source/java/org/alfresco/web/bean/wcm/CreateWebContentWizard.java index df66703e39..ea4f2dd654 100644 --- a/source/java/org/alfresco/web/bean/wcm/CreateWebContentWizard.java +++ b/source/java/org/alfresco/web/bean/wcm/CreateWebContentWizard.java @@ -80,6 +80,7 @@ import org.alfresco.web.ui.common.Utils; import org.alfresco.web.ui.common.component.UIListItem; import org.alfresco.web.ui.wcm.component.UIUserSandboxes; import org.apache.commons.io.FilenameUtils; +import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.w3c.dom.Document; @@ -104,6 +105,7 @@ public class CreateWebContentWizard extends CreateContentWizard protected boolean formSelectDisabled = false; protected boolean startWorkflow = false; protected List locksToReturnToMainStoreOnCancel = null; + protected String formDescriptionAttribute; transient private AVMLockingService avmLockingService; transient private AVMService avmService; @@ -238,6 +240,8 @@ public class CreateWebContentWizard extends CreateContentWizard } } + // this.formDescriptionAttribute = buildFormDescriptionAttribute(); + // reset the preview layer String storeName = AVMUtil.getStoreName(this.avmBrowseBean.getCurrentPath()); storeName = AVMUtil.getCorrespondingPreviewStoreName(storeName); @@ -877,6 +881,15 @@ public class CreateWebContentWizard extends CreateContentWizard return false; } + public String getFormDescriptionAttribute() + { + if (StringUtils.isEmpty(this.formDescriptionAttribute)) + { + this.formDescriptionAttribute = buildFormDescriptionAttribute(); + } + return this.formDescriptionAttribute; + } + // ------------------------------------------------------------------------------ // Action event handlers @@ -888,4 +901,34 @@ public class CreateWebContentWizard extends CreateContentWizard // clear the content as HTML is not compatible with the plain text box etc. this.content = null; } + + private String buildFormDescriptionAttribute() + { + FacesContext fc = FacesContext.getCurrentInstance(); + String contextPath = fc.getExternalContext().getRequestContextPath(); + StringBuilder attribute = new StringBuilder(255); + attribute.append(""); + attribute.append(""); + attribute.append(""); + attribute.append("\n"); + attribute.append(DescriptionAttributeHelper.getTableBegin()); + String formTitle = null; + try + { + formTitle = getForm().getTitle(); + } + catch (FormNotFoundException e) + { + formTitle = Application.getMessage(FacesContext.getCurrentInstance(),"form_not_found"); + } + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "form", formTitle)); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "location", + getFormInstanceData().getSandboxRelativePath())); + attribute.append(DescriptionAttributeHelper.getTableEnd()); + return attribute.toString(); + } } diff --git a/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java b/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java index a82f21b3b3..717b9bc3a3 100644 --- a/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java +++ b/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java @@ -76,6 +76,7 @@ import org.alfresco.web.ui.common.component.UIActionLink; import org.alfresco.web.ui.common.component.UIListItem; import org.alfresco.web.ui.common.component.UISelectList; import org.alfresco.web.ui.wcm.WebResources; +import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -83,6 +84,7 @@ import org.apache.commons.logging.LogFactory; * Backing bean for the Create Web Project wizard. * * @author Kevin Roast + * @author Arseny Kovalchuk (The fixer of the issue https://issues.alfresco.com/jira/browse/ETWOTWO-600,601) */ public class CreateWebsiteWizard extends BaseWizardBean { @@ -120,6 +122,7 @@ public class CreateWebsiteWizard extends BaseWizardBean protected List webappsList; protected boolean isSource; protected boolean showAllSourceProjects; + protected String websiteDescriptionAttribute; transient private AVMService avmService; transient private WorkflowService workflowService; @@ -1451,6 +1454,42 @@ public class CreateWebsiteWizard extends BaseWizardBean } } + /** + * + * @return Returns a websiteDescriptionAttribute + */ + public String getWebsiteDescriptionAttribute() + { + if (this.websiteDescriptionAttribute == null) + { + this.websiteDescriptionAttribute = buildWebsiteDescriptionAttribute(); + } + return this.websiteDescriptionAttribute; + } + + /** + * + * @return Returns a HTML code for "description" attribute + */ + private String buildWebsiteDescriptionAttribute() + { + FacesContext fc = FacesContext.getCurrentInstance(); + StringBuilder attribute = new StringBuilder(255); + String sourceWebProjectName = getSourceWebProjectName(); + sourceWebProjectName = StringUtils.isEmpty(sourceWebProjectName) ? + DescriptionAttributeHelper.BLANK : DescriptionAttributeHelper.TRTD_BEGIN + + Application.getMessage(fc, "website_sourcewebsite") + DescriptionAttributeHelper.TD_TD + + sourceWebProjectName + DescriptionAttributeHelper.TDTR_END; + attribute.append(DescriptionAttributeHelper.getTableBegin()); + attribute.append(sourceWebProjectName); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "website_dnsname", getDnsName())); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "website_webapp", getWebapp())); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "title", getTitle())); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "description", + DescriptionAttributeHelper.getDescriptionNotEmpty(fc, getDescription()))); + attribute.append(DescriptionAttributeHelper.getTableEnd()); + return attribute.toString(); + } // ------------------------------------------------------------------------------ // Invite users page @@ -1478,6 +1517,7 @@ public class CreateWebsiteWizard extends BaseWizardBean private Form form; private String title; private String description; + private String formDescriptionAttribute; private WorkflowWrapper workflow; private String outputPathPattern; private List templates = null; @@ -1486,6 +1526,7 @@ public class CreateWebsiteWizard extends BaseWizardBean { this.form = form; this.title = form.getName(); + this.description = form.getDescription(); } public Form getForm() @@ -1518,6 +1559,15 @@ public class CreateWebsiteWizard extends BaseWizardBean this.description = description; } + public String getFormDescriptionAttribute() + { + if (StringUtils.isEmpty(this.formDescriptionAttribute)) + { + this.formDescriptionAttribute = this.buildFormDescriptionAttribute(); + } + return this.formDescriptionAttribute; + } + /** * @return Returns the workflow. */ @@ -1600,6 +1650,24 @@ public class CreateWebsiteWizard extends BaseWizardBean { this.templates = templates; } + + private String buildFormDescriptionAttribute() + { + FacesContext fc = FacesContext.getCurrentInstance(); + StringBuilder attribute = new StringBuilder(255); + String formDescription = DescriptionAttributeHelper.getDescriptionNotEmpty(fc, this.getDescription()); + String workflowTitle = getWorkflow() == null ? + DescriptionAttributeHelper.SPAN_ITALIC_BEGIN + Application.getMessage(fc, "none") + + DescriptionAttributeHelper.SPAN_END : getWorkflow().getTitle(); + attribute.append(DescriptionAttributeHelper.getTableBegin()); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "name", this.getName())); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "title", this.getTitle())); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "output_path_pattern", this.getOutputPathPattern())); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "description", formDescription)); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "workflow", workflowTitle)); + attribute.append(DescriptionAttributeHelper.getTableEnd()); + return attribute.toString(); + } } @@ -1682,6 +1750,7 @@ public class CreateWebsiteWizard extends BaseWizardBean private String title; private String description; private String filenamePattern; + private String workflowDescriptionAttribute; private QName type; private Map params; @@ -1690,6 +1759,7 @@ public class CreateWebsiteWizard extends BaseWizardBean this.name = name; this.title = title; this.description = description; + this.workflowDescriptionAttribute = this.buildWorkflowDescriptionAttribute(); } public WorkflowWrapper(String name, String title, String description, String filenamePattern) @@ -1698,6 +1768,7 @@ public class CreateWebsiteWizard extends BaseWizardBean this.title = title; this.description = description; this.filenamePattern = filenamePattern; + this.workflowDescriptionAttribute = this.buildWorkflowDescriptionAttribute(); } /** @@ -1771,6 +1842,35 @@ public class CreateWebsiteWizard extends BaseWizardBean { this.type = type; } + + /** + * + * @return Returns workflowDescriptionAttribute in HTML format (TABLE tag) + */ + public String getWorkflowDescriptionAttribute() + { + if (StringUtils.isEmpty(this.workflowDescriptionAttribute)) + { + this.workflowDescriptionAttribute = this.buildWorkflowDescriptionAttribute(); + } + return this.workflowDescriptionAttribute; + } + + /** + * + * @return Returns HTML representation of the "description" attribute + */ + private String buildWorkflowDescriptionAttribute() + { + FacesContext fc = FacesContext.getCurrentInstance(); + String workflowDescription = DescriptionAttributeHelper.getDescriptionNotEmpty(fc, getDescription()); + StringBuilder attribute = new StringBuilder(255); + attribute.append(DescriptionAttributeHelper.getTableBegin()); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "description", workflowDescription)); + attribute.append(DescriptionAttributeHelper.getTableLine(fc, "website_filename_pattern", this.getFilenamePattern())); + attribute.append(DescriptionAttributeHelper.getTableEnd()); + return attribute.toString(); + } } @@ -1779,6 +1879,7 @@ public class CreateWebsiteWizard extends BaseWizardBean private static final long serialVersionUID = 6546685548198253273L; private final String name, role; + private String userDescriptionAttribute; public UserWrapper(final String authority, final String role) { @@ -1796,9 +1897,28 @@ public class CreateWebsiteWizard extends BaseWizardBean this.name = authority.substring(PermissionService.GROUP_PREFIX.length()); } this.role = Application.getMessage(FacesContext.getCurrentInstance(), role); + this.userDescriptionAttribute = this.buildUserDescriptionAttribute(); } public String getName() { return this.name; } public String getRole() { return this.role; } + public String getUserDescriptionAttribute() + { + if (StringUtils.isEmpty(this.userDescriptionAttribute)) + { + this.userDescriptionAttribute = buildUserDescriptionAttribute(); + } + return this.userDescriptionAttribute; + } + + private String buildUserDescriptionAttribute() + { + FacesContext fc = FacesContext.getCurrentInstance(); + StringBuilder attribute = new StringBuilder(128); + attribute.append(DescriptionAttributeHelper.getTableBegin()).append( + DescriptionAttributeHelper.getTableLine(fc, "roles", this.getRole())).append( + DescriptionAttributeHelper.getTableEnd()); + return attribute.toString(); + } } } diff --git a/source/java/org/alfresco/web/bean/wcm/DescriptionAttributeHelper.java b/source/java/org/alfresco/web/bean/wcm/DescriptionAttributeHelper.java new file mode 100644 index 0000000000..5ea8e76022 --- /dev/null +++ b/source/java/org/alfresco/web/bean/wcm/DescriptionAttributeHelper.java @@ -0,0 +1,72 @@ +package org.alfresco.web.bean.wcm; + +import javax.faces.context.FacesContext; + +import org.alfresco.web.app.Application; +import org.apache.commons.lang.StringUtils; + +/** + * Helper class to build a HTML description attribute for the tag. + * + * @author Arseny Kovalchuk + * + * @see org.alfresco.web.bean.wcm.CreateWebsiteWizard + * @see org.alfresco.web.bean.wcm.CreateFormWizard + */ +public class DescriptionAttributeHelper +{ + static final String BLANK = ""; + static final String TABLE_BEGIN = ""; + static final String TABLE_END = "
"; + static final String TRTD_BEGIN = ""; + static final String TD_TD = ":"; + static final String TDTR_END = ""; + static final String SPAN_ITALIC_BEGIN = ""; + static final String SPAN_END = ""; + + /** + * + * @return Returns beginning tags of the HTML table + * @see org.alfresco.web.bean.wcm.DescriptionAttributeConstants + */ + public static String getTableBegin() + { + return TABLE_BEGIN; + } + /** + * + * @param fc Current FacesContext + * @param fieldName Field name + * @param fieldValue Field value + * @return Returns a table line Localised field name:Field value + */ + public static String getTableLine(FacesContext fc, String fieldName, String fieldValue) + { + StringBuilder line = new StringBuilder(128); + line.append(TRTD_BEGIN).append(Application.getMessage(fc, fieldName)).append(TD_TD).append(fieldValue).append(TDTR_END); + return line.toString(); + } + + /** + * + * @return Returns an ending HTML table tags + */ + public static String getTableEnd() + { + return TABLE_END; + } + + /** + * + * @param fc Current FacesContext + * @param fieldValue Field value + * @return Returns localised "description_not_set" message if fieldValue is empty. + */ + public static String getDescriptionNotEmpty(FacesContext fc, String fieldValue) + { + return StringUtils.isEmpty(fieldValue) ? + SPAN_ITALIC_BEGIN + Application.getMessage(fc, "description_not_set") + SPAN_END : + fieldValue; + } + +} diff --git a/source/java/org/alfresco/web/forms/Rendition.java b/source/java/org/alfresco/web/forms/Rendition.java index d3111520d1..32f1d63a87 100644 --- a/source/java/org/alfresco/web/forms/Rendition.java +++ b/source/java/org/alfresco/web/forms/Rendition.java @@ -67,6 +67,9 @@ public interface Rendition /** the output stream for the rendition */ public OutputStream getOutputStream(); + /** the HTML description attribute for UI */ + public String getDescriptionAttribute(); + /** regenerates the contents of this rendition using the primary form instance data */ public void regenerate() throws IOException, diff --git a/source/java/org/alfresco/web/forms/RenditionImpl.java b/source/java/org/alfresco/web/forms/RenditionImpl.java index b02d7f0800..d3949a3289 100644 --- a/source/java/org/alfresco/web/forms/RenditionImpl.java +++ b/source/java/org/alfresco/web/forms/RenditionImpl.java @@ -42,6 +42,7 @@ import org.alfresco.util.Pair; import org.alfresco.web.app.servlet.FacesHelper; import org.alfresco.web.bean.repository.Repository; import org.alfresco.web.bean.wcm.AVMUtil; +import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.xml.sax.SAXException; @@ -62,6 +63,7 @@ import org.xml.sax.SAXException; private final NodeRef nodeRef; transient private FormsService formsService; transient private RenderingEngineTemplate renderingEngineTemplate; + private String descriptionAttribute; /* package */ RenditionImpl(final NodeRef nodeRef, final FormsService formsService) { @@ -267,4 +269,28 @@ import org.xml.sax.SAXException; ", rendering_engine_template : " + this.getRenderingEngineTemplate() + "}"); } + + public String getDescriptionAttribute() + { + if (StringUtils.isEmpty(this.descriptionAttribute)) + { + this.descriptionAttribute = buildDescriptionAttribute(); + } + return this.descriptionAttribute; + } + + private String buildDescriptionAttribute() + { + int hashCode = hashCode(); + String contextPath = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath(); + StringBuilder attribute = new StringBuilder(255); + attribute.append(""); + attribute.append("\"").append(getName()).append("\""); + attribute.append("").append(getDescription()).append(""); + return attribute.toString(); + } } diff --git a/source/web/jsp/wcm/create-form-wizard/form-summary.jsp b/source/web/jsp/wcm/create-form-wizard/form-summary.jsp index 4072394659..1442d02cad 100644 --- a/source/web/jsp/wcm/create-form-wizard/form-summary.jsp +++ b/source/web/jsp/wcm/create-form-wizard/form-summary.jsp @@ -37,32 +37,13 @@ - - - - - - - - - - - -
${msg.description}: - - - ${msg.description_not_set} - - ${WizardManager.bean.formDescription} - -
${msg.schema_root_element_name}:${WizardManager.bean.schemaRootElementName}
-
-
-
+ + +
\ No newline at end of file diff --git a/source/web/jsp/wcm/create-form-wizard/web-form-summary.jsp b/source/web/jsp/wcm/create-form-wizard/web-form-summary.jsp index 5d09e5ab03..dda7df03d8 100644 --- a/source/web/jsp/wcm/create-form-wizard/web-form-summary.jsp +++ b/source/web/jsp/wcm/create-form-wizard/web-form-summary.jsp @@ -19,7 +19,8 @@ * FLOSS exception. You should have recieved a copy of the text describing * the FLOSS exception, and it is also available here: * http://www.alfresco.com/legal/licensing" - --%> +--%> + <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> @@ -41,30 +42,10 @@ multiSelect="false" activeSelect="true" style="width:100%" - itemStyle="vertical-align: top; margin-right: 5px;"> - - - - - - - - - - - -
${msg.description}: - - - ${msg.description_not_set} - - ${WizardManager.bean.formDescription} - -
${msg.schema_root_element_name}:${WizardManager.bean.schemaRootElementName}
${msg.output_path_pattern}:${WizardManager.bean.outputPathPatternForFormInstanceData}
-
-
+ itemStyle="vertical-align: top; margin-right: 5px; padding-right: 5px;"> + @@ -75,38 +56,18 @@ + value="#{msg.no_selected_items}"/> - - - - - - - - - - - -
${msg.description}: - - - ${msg.description_not_set} - - ${ret.description} - -
${msg.rendering_engine_type}:${ret.renderingEngine.name}
${msg.output_path_pattern}:${ret.outputPathPatternForRendition}
${msg.mimetype_for_renditions}:${ret.mimetypeForRendition}
-
-
+ image="/images/icons/template_large.gif" + description="${ret.renderingEngineDescriptionAttribute}" />
@@ -118,33 +79,16 @@ + rendered="#{WizardManager.bean.defaultWorkflowDefinition == null}"/> - - - - - - - - -
${msg.description}: - - - ${msg.description_not_set} - - ${WizardManager.bean.defaultWorkflowDefinition.description} - -
-
-
+ image="/images/icons/workflow_large.gif" + description="${WizardManager.bean.workflowDescriptionAttribute}" />
diff --git a/source/web/jsp/wcm/create-web-content-wizard/summary.jsp b/source/web/jsp/wcm/create-web-content-wizard/summary.jsp index 521d8f7af3..0b58f3cc8f 100644 --- a/source/web/jsp/wcm/create-web-content-wizard/summary.jsp +++ b/source/web/jsp/wcm/create-web-content-wizard/summary.jsp @@ -1,4 +1,4 @@ - - - - - - - + --%> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> +<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> +<%@ page isELIgnored="false" %> - + - - - ${WizardManager.bean.name} - - - - - - - - - - - - - - -
${msg.website_sourcewebsite}: ${WizardManager.bean.sourceWebProjectName}
${msg.website_dnsname}: ${WizardManager.bean.dnsName}
${msg.website_webapp}: ${WizardManager.bean.webapp}
${msg.title}: ${WizardManager.bean.title}
${msg.description}: - - - ${msg.description_not_set} - - ${WizardManager.bean.description} - -
-
-
+ +
- - + <%-- Web Content Forms --%> + - - - - ${r.name} - - - - - - - - - - - - - - -
${msg.name}: ${r.name}
${msg.title}: ${r.title}
${msg.output_path_pattern}: ${r.outputPathPattern}
${msg.description}: - - - ${msg.description_not_set} - - ${r.description} - -
${msg.workflow}: - - - ${msg.none} - - ${r.workflow.title} - -
-
-
+ + +
- - + <%-- Selected Workflows --%> + - - - - - ${r.title} - - - - - - - - - -
${msg.description}: - - - ${msg.description_not_set} - - ${r.description} - -
${msg.website_filename_pattern}: ${r.filenamePattern}
-
-
+ + + +
- - + <%-- Users and Roles --%> + - - - - - - - - - - - -
${msg.roles}: ${r.role}
-
-
-
-
-
- -
\ No newline at end of file + + + + + + +