[
https://issues.apache.org/jira/browse/WICKET-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662909#action_12662909
]
kmaja edited comment on WICKET-2015 at 1/12/09 12:52 AM:
-------------------------------------------------------------
I disagree that my example was incorrect. I presume submitting a form without
field input is the correct way to test if field is set to require input. Fields
setValue()-method is not needed for that test. Anyway i checked my examples and
expanded them.
Wicket-Quickstart-Update covers also the following malfunctions in file upload:
- TextField input length validation
(field.add(StringValidator(lengthBetween(...)))).
- DropDownChoice validation does not "see" selection.
Thanks to Carstens for degugging note! Hopefully it helps someone to fix the
bug. I found already a patch to Wicket 1.4-RC2. Maybe it sticks:
https://issues.apache.org/jira/browse/WICKET-1931.
was (Author: kmaja):
I disagree that my example was incorrect. I presume submitting a form
without field input is the correct way to test if field is set to require
input. Fields setValue()-method is not needed for that test. Anyway i checked
my examples and expanded them.
Wicket-Quickstart-Update covers also the following malfunctions in file upload:
- TextField input length validation
(field.add(StringValidator(lengthBetween(...)))).
- DropDownChoice validation does not "see" selection.
Thanks to Casters for degugging note! Hopefully it helps someone to fix the
bug. I found already a patch to Wicket 1.4-RC2. Maybe it sticks:
https://issues.apache.org/jira/browse/WICKET-1931.
> 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.