[
https://issues.apache.org/jira/browse/WICKET-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663096#action_12663096
]
Carsten Behring commented on WICKET-2015:
-----------------------------------------
I did not take a close look at the quick start test. In our case the situation
was:
1. FileUpload is not required
2. No other fields of the form where required
In this situation the submission of the form via the tester without setting any
fields seemed not do anything.
No error messages appeared and the models of the form components were not
updated. In this situation I ran it with the debugger, with seemed to show that
the form submission process fails silently in the middle.
My workaround was to set a value to the not required fileupload and the form
submission worked as expected (no error messages and models updated).
> Empty File Upload field breaks validation of other fields in WicketTester.
> --------------------------------------------------------------------------
>
> Key: WICKET-2015
> URL: https://issues.apache.org/jira/browse/WICKET-2015
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC1
> Environment: Windows XP SP3, Eclipse IDE, Wicket 1.4-rc1.
> Reporter: Kari Maja
> Attachments: Wicket-Quickstart-Update.zip, Wicket-Quickstart.zip,
> WicketQuickstart.zip
>
>
> Submitting form with empty FileUpload -field break validations of other
> fields in WicketTester:
> - TextField mandatority (field.setRequired(true)).
> - TextField input length validation
> (field.add(StringValidator(lengthBetween(...)))).
> - DropDownChoice validation does not "see" selection.
> If File Upload -field is filled, then validations above work.
> Form submits manually without a problem in web browser.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.