cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r730214 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl
Date Tue, 30 Dec 2008 19:01:31 GMT
Author: antonio
Date: Tue Dec 30 11:01:30 2008
New Revision: 730214

URL: http://svn.apache.org/viewvc?rev=730214&view=rev
Log:
MultiValueEditorWithSuggestion: Filter Selection list to display only selected values and
add styling processing to the widget.

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl?rev=730214&r1=730213&r2=730214&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl
Tue Dec 30 11:01:30 2008
@@ -270,22 +270,20 @@
       | fi:multivaluefield with a selection list and suggestions support
       +-->
   <xsl:template match="fi:multivaluefield[fi:styling/@type='MultiValueEditorWithSuggestion']">
-    <!-- <xsl:variable name="values" select="fi:values/fi:value/text()"/>
-    <xsl:variable name="popupUri" select="fi:styling/@popup-uri"/>
-    <xsl:variable name="popupLinkText" select="fi:styling/@popup-link-text"/>
-    <xsl:variable name="dataUrl" select="fi:styling/@dataUrl"/>
-    <xsl:variable name="popupSize" select="fi:styling/@popup-size"/>-->
-
+    <xsl:variable name="values" select="fi:values/fi:value/text()"/>
     <div id="{@id}" dojoType="forms:MultiValueEditorWithSuggestion" styleClass="multivalue-widget"
dataUrl="{fi:styling/@dataUrl}"
         popupUri="{fi:styling/@popup-uri}" popupLinkText="{fi:styling/@popup-link-text}"
popupSize="{fi:styling/@popup-size}">
+        <xsl:apply-templates select="." mode="styling" />
       <table>
         <tbody>
           <xsl:for-each select="fi:selection-list/fi:item">
             <xsl:variable name="value" select="@value"/>
-            <tr>
-              <td><xsl:value-of select="$value"/></td>
-              <td><xsl:copy-of select="fi:label/node()"/></td>
-            </tr>
+            <xsl:if test="$values[. = $value]">
+              <tr>
+                <td><xsl:value-of select="$value"/></td>
+                <td><xsl:copy-of select="fi:label/node()"/></td>
+              </tr>
+            </xsl:if>
           </xsl:for-each>
         </tbody>
       </table>



Mime
View raw message