cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r384795 - in /cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources: forms-advanced-field-styling.xsl forms-field-styling.xsl js/forms-lib.js
Date Fri, 10 Mar 2006 14:03:12 GMT
Author: bruno
Date: Fri Mar 10 06:03:10 2006
New Revision: 384795

URL: http://svn.apache.org/viewcvs?rev=384795&view=rev
Log:
Applied (slightly modified) patch from Grzegorz Kossakowski to make (take a breath) client-side
behaviour of multivalue fields with double-listbox styling and value changed listeners correct.
See COCOON-1777.

Modified:
    cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl
    cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
    cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/js/forms-lib.js

Modified: cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl?rev=384795&r1=384794&r2=384795&view=diff
==============================================================================
--- cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl
(original)
+++ cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl
Fri Mar 10 06:03:10 2006
@@ -170,7 +170,7 @@
           </td>
         </tr>
       </table>
-      <script type="text/javascript"><xsl:value-of select="$browser-variable"/>
= forms_createOptionTransfer('<xsl:value-of select="@id"/>', <xsl:value-of select="fi:styling/@submit-on-change
= 'true'"/>);</script>
+      <script type="text/javascript"><xsl:value-of select="$browser-variable"/>
= forms_createOptionTransfer('<xsl:value-of select="@id"/>', <xsl:value-of select="@listening
= 'true' and not(fi:styling/@submit-on-change = 'false')"/>);</script>
     </div>
   </xsl:template>
 

Modified: cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl?rev=384795&r1=384794&r2=384795&view=diff
==============================================================================
--- cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
(original)
+++ cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
Fri Mar 10 06:03:10 2006
@@ -93,7 +93,7 @@
     <xsl:apply-templates select="fi:styling/@*" mode="styling"/>
 
     <!--  Auto submit on fields which are listening -->
-    <xsl:if test="@listening = 'true' and not(fi:styling/@submit-on-change = 'false')
and not(fi:styling/@onchange)">
+      <xsl:if test="@listening = 'true' and not(fi:styling/@submit-on-change = 'false')
and not(fi:styling/@onchange) and not(fi:styling/@list-type = 'double-listbox')">
       <xsl:attribute name="onchange">forms_submitForm(this)</xsl:attribute>
     </xsl:if>
 

Modified: cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/js/forms-lib.js
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/js/forms-lib.js?rev=384795&r1=384794&r2=384795&view=diff
==============================================================================
--- cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/js/forms-lib.js
(original)
+++ cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/js/forms-lib.js
Fri Mar 10 06:03:10 2006
@@ -120,7 +120,7 @@
     var result = new OptionTransfer(id + ".unselected", id);
     result.setAutoSort(true);
     // add to onload handlers
-    result.forms_id = id;
+    result.forms_id = id + ":input";
     result.forms_onload = function() {
         var form = forms_getForm(document.getElementById(this.forms_id));
         this.init(form);



Mime
View raw message