cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <j...@apache.org>
Subject [jira] Updated: (COCOON-2204) ft:group internal div not handled correctly.
Date Sun, 27 Apr 2008 23:54:55 GMT

     [ https://issues.apache.org/jira/browse/COCOON-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jörg Heinicke updated COCOON-2204:
----------------------------------

             Priority: Minor  (was: Major)
              Urgency: Normal  (was: Urgent)
    Affects Version/s:     (was: 2.2-dev (Current SVN))

> ft:group internal div not handled correctly.
> --------------------------------------------
>
>                 Key: COCOON-2204
>                 URL: https://issues.apache.org/jira/browse/COCOON-2204
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Forms
>    Affects Versions: 2.2
>            Reporter: Kamal Bhatt
>            Assignee: Jörg Heinicke
>            Priority: Minor
>             Fix For: 2.2-dev (Current SVN)
>
>
> According to this page: http://cocoon.apache.org/2.2/blocks/forms/1.0/750_1_1.html
> If you you are using Ajax, a div (or similar element) must surround the fields of a group.
eg:
> <ft:group id="info">
>   <div>
>     <p><ft:widget id="foo"/></p>
>     <p><ft:widget id="bar"/></p>
>   </div>
> </ft:group>
> CForms (through the magic of the forms-field-styling.xsl) will put the group's id on
the div. The code to this, seems broken as it does not match on the div, but on the fi:group.
> NOTE: This is another solution to the problem described here:
> https://issues.apache.org/jira/browse/COCOON-1825
> However, the solution described within it seems to make the suggestion in http://cocoon.apache.org/2.2/blocks/forms/1.0/750_1_1.html
redundant. Either way, either this issue or that one is not necessary. 
> Patch is provided below:
> Index: D:/workspace-java/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl
> ===================================================================
> --- D:/workspace-java/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl
(revision 651922)
> +++ D:/workspace-java/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl
(working copy)
> @@ -706,7 +706,7 @@
>      <xsl:apply-templates/>
>    </xsl:template>
>  
> -  <xsl:template match="fi:group" mode="copy-parent-id">
> +  <xsl:template match="*" mode="copy-parent-id">
>      <xsl:copy>
>        <xsl:attribute name="id"><xsl:value-of select="../@id"/></xsl:attribute>
>        <xsl:copy-of select="@*"/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message