[
https://issues.apache.org/jira/browse/WICKET-5346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776168#comment-13776168
]
Rob Audenaerde edited comment on WICKET-5346 at 9/24/13 10:02 AM:
------------------------------------------------------------------
It currently explicitly checks the FormComponent to be a FileUploadField.
MultiFileUpload does not extend this. See the setFile method
{code}
if (formComponent instanceof FileUploadField == false)
{
fail("'" + formComponentId + "' is not " +
"a FileUploadField. You can only attach a file
to form " +
"component of this type.");
}
{code}
was (Author: robau):
It currently explicitly checks the FormComponent to be a FileUploadField.
MultiFileUpload does not extend this.
{code}
if (formComponent instanceof FileUploadField == false)
{
fail("'" + formComponentId + "' is not " +
"a FileUploadField. You can only attach a file
to form " +
"component of this type.");
}
{code}
> Support MultiFileUploadField in FormTester
> ------------------------------------------
>
> Key: WICKET-5346
> URL: https://issues.apache.org/jira/browse/WICKET-5346
> Project: Wicket
> Issue Type: Improvement
> Reporter: Rob Audenaerde
>
> Currently FormTester contains the 'setFile' method. I want to be able to use
> the WicketTester / FormTester to test multifileuploads.
> FormTester would be even better that it is now if there is a setFiles()
> method for MultiFileUploadField.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira