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 04:55:47 UTC
svn commit: r652047 - 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 19:55:45 2008
New Revision: 652047
URL: http://svn.apache.org/viewvc?rev=652047&view=rev
Log:
COCOON-1825: Fix @id handling on fi:group/fi:struct 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=652047&r1=652046&r2=652047&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 19:55:45 2008
@@ -26,8 +26,11 @@
<document>
<body>
<release version="1.0.0" date="TBD" description="unreleased">
+ <action dev="joerg" type="fix" fixes-bug="COCOON-1825" due-to="Vincent Demay" due-to-email="vincent@demay-fr.net">
+ Fix @id handling on fi:group/fi:struct element in conjunction with AJAX requests.
+ </action>
<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.
+ Fix @id handling on fi: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.
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=652047&r1=652046&r2=652047&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 19:55:45 2008
@@ -677,9 +677,16 @@
<!--+
| fi:struct - has no visual representation by default
+ | If the fi:struct contains an id and has only one child that is not in the fi: namespace,
+ | then copy the id to the child. This is needed for ajax when grouping is just used to group
+ | widgets.
+-->
<xsl:template match="fi:struct">
<xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="fi:struct[@id and count(*) = 1 and not(fi:*)]">
+ <xsl:apply-templates mode="copy-parent-id"/>
</xsl:template>
<!--+