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

Stijn Maller commented on WICKET-3555:
--------------------------------------

Igor, 

OK, I get why it is registered on the form and not the field, but could you 
explain why it needs to be the ROOT form and not simply the form that contains 
the upload?
Should nested forms suddenly start behaving different just because they contain 
an upload field? 

https://cwiki.apache.org/WICKET/nested-forms.html 

Kind regards,
Stijn

> hasError() returns false on nested form with FileUploadField and defined max 
> file upload size
> ---------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3555
>                 URL: https://issues.apache.org/jira/browse/WICKET-3555
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.16
>            Reporter: Alexander Morozov
>            Assignee: Igor Vaynberg
>         Attachments: modalproject2.zip
>
>
> The nested form have FileUploadField added and defined setMaxSize is set to 
> 100K. In case of submitting the form thru Ajax file more than 100K, 
> hasError() on the nested form return false. But I expect here 'true' - 
> because of setMaxSize constraint violation.
> See also 
> http://apache-wicket.1842946.n4.nabble.com/Nested-Forms-and-Multipart-Fileupload-Issue-td1844365.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to