diff --git a/config/alfresco/web-client-config-properties.xml b/config/alfresco/web-client-config-properties.xml index 3aff50eb6b..4e8cb39eea 100644 --- a/config/alfresco/web-client-config-properties.xml +++ b/config/alfresco/web-client-config-properties.xml @@ -155,6 +155,7 @@ + diff --git a/source/java/org/alfresco/web/bean/wcm/CreateWebContentWizard.java b/source/java/org/alfresco/web/bean/wcm/CreateWebContentWizard.java index 03dac5f4cf..40f6c513df 100644 --- a/source/java/org/alfresco/web/bean/wcm/CreateWebContentWizard.java +++ b/source/java/org/alfresco/web/bean/wcm/CreateWebContentWizard.java @@ -80,7 +80,6 @@ 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; @@ -900,10 +899,7 @@ public class CreateWebContentWizard extends CreateContentWizard public String getFormDescriptionAttribute() { - if (StringUtils.isEmpty(this.formDescriptionAttribute)) - { - this.formDescriptionAttribute = buildFormDescriptionAttribute(); - } + this.formDescriptionAttribute = buildFormDescriptionAttribute(); return this.formDescriptionAttribute; } diff --git a/source/java/org/alfresco/web/forms/xforms/Schema2XForms.java b/source/java/org/alfresco/web/forms/xforms/Schema2XForms.java index 5815d61d53..b1cd9f4777 100644 --- a/source/java/org/alfresco/web/forms/xforms/Schema2XForms.java +++ b/source/java/org/alfresco/web/forms/xforms/Schema2XForms.java @@ -1289,7 +1289,8 @@ public class Schema2XForms implements Serializable elementDecl, compatibleTypes, pathToRoot, - resourceBundle); + resourceBundle, + occurs); } } @@ -1342,7 +1343,8 @@ public class Schema2XForms implements Serializable final XSElementDeclaration elementDecl, final TreeSet compatibleTypes, final String pathToRoot, - final ResourceBundle resourceBundle) + final ResourceBundle resourceBundle, + final SchemaUtil.Occurrence occurs) throws FormBuilderException { // look for compatible types @@ -1364,14 +1366,18 @@ public class Schema2XForms implements Serializable // multiple compatible types for this element exist // in the schema - allow the user to choose from // between compatible non-abstract types + boolean isRepeated = isRepeated(occurs, controlType); Element bindElement = this.createBind(xformsDocument, pathToRoot + "/@xsi:type"); String bindId = bindElement.getAttributeNS(null, "id"); modelSection.appendChild(bindElement); + this.startBindElement(bindElement, schema, controlType, null, occurs); //add the "element" bind, in addition - final Element bindElement2 = this.createBind(xformsDocument, pathToRoot); + final Element bindElement2 = this.createBind(xformsDocument, + pathToRoot + (isRepeated ? "[position() != last()]" : "")); final String bindId2 = bindElement2.getAttributeNS(null, "id"); modelSection.appendChild(bindElement2); + this.startBindElement(bindElement2, schema, controlType, null, occurs); // add content to select1 final Map caseTypes = diff --git a/source/web/jsp/content/edit-link-properties.jsp b/source/web/jsp/content/edit-link-properties.jsp index 3ad55dada7..7752af5fcf 100644 --- a/source/web/jsp/content/edit-link-properties.jsp +++ b/source/web/jsp/content/edit-link-properties.jsp @@ -24,53 +24,16 @@ --%> <%@ 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" %> - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - -
: - * -
: - -
: - -
: - -
\ No newline at end of file