You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2008/04/28 01:49:21 UTC
svn commit: r652028 - in
/cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src:
changes/changes.xml
main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl
Author: joerg
Date: Sun Apr 27 16:49:17 2008
New Revision: 652028
URL: http://svn.apache.org/viewvc?rev=652028&view=rev
Log:
COCOON-2204: Fix @id handling on ft:group element in conjunction with AJAX requests.
Modified:
cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src/changes/changes.xml
cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl
Modified: cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src/changes/changes.xml?rev=652028&r1=652027&r2=652028&view=diff
==============================================================================
--- cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src/changes/changes.xml (original)
+++ cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src/changes/changes.xml Sun Apr 27 16:49:17 2008
@@ -25,7 +25,10 @@
-->
<document>
<body>
- <release version="1.0.0" date="2008-??-??" description="unreleased">
+ <release version="1.0.0" date="TBD" description="unreleased">
+ <action dev="joerg" type="fix" fixes-bug="COCOON-2204" due-to="Kamal Bhatt" due-to-email="bhatt@tt.com.au">
+ Fix @id handling on ft:group element in conjunction with AJAX requests.
+ </action>
<action dev="joerg" type="fix" fixes-bug="COCOON-2178" due-to="Harald Entner" due-to-email="harald.entner@workflow.at">
Dispatch only one TreeSelectionEvent on multiple selection rather than one event for each selected tree item.
</action>
Modified: cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl
URL: http://svn.apache.org/viewvc/cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl?rev=652028&r1=652027&r2=652028&view=diff
==============================================================================
--- cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl (original)
+++ cocoon/branches/cocoon-forms-1.0.0/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl Sun Apr 27 16:49:17 2008
@@ -688,15 +688,15 @@
| then copy the id to the child. This is needed for ajax when grouping is just used to group
| widgets.
+-->
- <xsl:template match="fi:group[@id and count(*) = 1 and not(fi:*)]">
- <xsl:apply-templates mode="copy-parent-id"/>
- </xsl:template>
-
<xsl:template match="fi:group">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template match="fi:group" mode="copy-parent-id">
+ <xsl:template match="fi:group[@id and count(*) = 1 and not(fi:*)]">
+ <xsl:apply-templates mode="copy-parent-id"/>
+ </xsl:template>
+
+ <xsl:template match="*" mode="copy-parent-id">
<xsl:copy>
<xsl:attribute name="id"><xsl:value-of select="../@id"/></xsl:attribute>
<xsl:copy-of select="@*"/>