You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Matej Knopp (JIRA)" <ji...@apache.org> on 2007/05/12 16:02:15 UTC

[jira] Commented: (WICKET-406) form fields are reset when a file upload fails

    [ https://issues.apache.org/jira/browse/WICKET-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495273 ] 

Matej Knopp commented on WICKET-406:
------------------------------------

I'm not sure if it's possible to process the fields in this case. When the request size exceeds limit, the multipart request shouldn't be processed at all.

> form fields are reset when a file upload fails
> ----------------------------------------------
>
>                 Key: WICKET-406
>                 URL: https://issues.apache.org/jira/browse/WICKET-406
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.2.2, 1.2.3, 1.2.4, 1.2.5
>         Environment: Tomcat 5.5.9 , windows 2000 SP2
>            Reporter: Jaime De La Jara
>            Priority: Minor
>
> If a form contains some fields and a file field, when an uploads fails (for example exceeds the maximum size) the form fields are reset. A better behaviour would be to group all failed validations and show all the messages at once. The relevant code is in class wicket.markup.html.form.Form in method onFormSubmitted, where the condition of handleMultipart is first checked and if it has not been completed the method returns, without processing the rest of the fields.

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