You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Gabriele Columbro (JIRA)" <ji...@apache.org> on 2006/10/03 12:39:21 UTC
[jira] Updated: (COCOON-1900) BUG in forms-field-styling.xsl
[ http://issues.apache.org/jira/browse/COCOON-1900?page=all ]
Gabriele Columbro updated COCOON-1900:
--------------------------------------
Attachment: forms-field-styling.diff
Patch for the trunk for adding the input name.
> 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
> 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