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] Closed: (COCOON-1900) BUG in forms-field-styling.xsl
Date Sun, 08 Oct 2006 10:37:21 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1900?page=all ]

Jörg Heinicke closed COCOON-1900.
---------------------------------

    Fix Version/s: 2.2-dev (Current SVN)
                   2.1.10-dev (current SVN)
       Resolution: Fixed

> BUG in forms-field-styling.xsl
> ------------------------------
>
>                 Key: COCOON-1900
>                 URL: http://issues.apache.org/jira/browse/COCOON-1900
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Forms
>            Reporter: johnson hsu
>         Assigned To: Jörg Heinicke
>             Fix For: 2.2-dev (Current SVN), 2.1.10-dev (current SVN)
>
>         Attachments: forms-field-styling.diff
>
>
> <xsl:template match="fi:booleanfield[@state='output' or
> fi:styling/@type='output']" priority="3">
> <input id="{@id}" type="checkbox" title="{fi:hint}" disabled="disabled"
> value="{@true-value}">
> <xsl:if test="fi:value != 'false'">
> <xsl:attribute name="checked">checked</xsl:attribute>
> </xsl:if>
> </input>
> </xsl:template>
> must add a name attribute.
> <xsl:template match="fi:booleanfield[@state='output' or
> fi:styling/@type='output']" priority="3">
> <input id="{@id}" type="checkbox" title="{fi:hint}" disabled="disabled"
> value="{@true-value}" name="{@id}">
> <xsl:if test="fi:value != 'false'">
> <xsl:attribute name="checked">checked</xsl:attribute>
> </xsl:if>
> </input>
> </xsl:template>
> Without the name attribute, It's not convenient to find the value of checkbox by script.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message