cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Dumon (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COCOON-1780) [PATCH] Upload Widget : Can not change selected file
Date Tue, 21 Feb 2006 20:06:00 GMT
    [ http://issues.apache.org/jira/browse/COCOON-1780?page=comments#action_12367248 ] 

Bruno Dumon commented on COCOON-1780:
-------------------------------------

I just committed a patch.

The cause of the problem is that the submitWidget is now assigned after the readFromRequest
processing. Fixed it in the same way as for the other widgets (such as Action).

> [PATCH] Upload Widget : Can not change selected file
> ----------------------------------------------------
>
>          Key: COCOON-1780
>          URL: http://issues.apache.org/jira/browse/COCOON-1780
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: Forms
>     Versions: 2.2-dev (Current SVN), 2.1.9-dev (current SVN)
>     Reporter: vincent Demay
>     Assignee: Jean-Baptiste Quenot

>
> When a file is selected with the upload widget and a on-value-change event is fired,
the value of the widget can not be changed by user.
> here is the patch
> Index: /cvs/cocoon/cocoon_BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
> ===================================================================
> --- /cvs/cocoon/cocoon_BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
(revision 377974)
> +++ /cvs/cocoon/cocoon_BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
(working copy)
> @@ -486,7 +486,7 @@
>              <xsl:text>[</xsl:text>
>              <xsl:value-of select="fi:value"/>
>              <xsl:text>] </xsl:text>
> -            <input type="button" id="{@id}:input" name="{@id}" value="..." onclick="forms_submitForm(this)"/>
> +           <input type="submit" id="{@id}:input" name="{@id}" value="..." onclick="forms_submitForm(this)"/>
>          </xsl:when>
>          <xsl:otherwise>
>            <input type="file" id="{@id}:input" name="{@id}" title="{fi:hint}" accept="{@mime-types}">

-- 
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