You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2011/03/09 07:02:00 UTC
[jira] Resolved: (WICKET-3494)
org/apache/wicket/markup/html/form/upload/MultiFileUploadField
setDefaultModel type error
[ https://issues.apache.org/jira/browse/WICKET-3494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-3494.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.5-RC3
Assignee: Igor Vaynberg
> org/apache/wicket/markup/html/form/upload/MultiFileUploadField setDefaultModel type error
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3494
> URL: https://issues.apache.org/jira/browse/WICKET-3494
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC2
> Environment: all
> Reporter: Richard Emberson
> Assignee: Igor Vaynberg
> Priority: Minor
> Fix For: 1.5-RC3
>
>
> If one worries about correct typing (which I am forced to do), then the setDefaultModel method for
> org/apache/wicket/markup/html/form/upload/MultiFileUploadField
> should be:
> public FileUploadField setDefaultModel(IModel<?> model) {
> return (FileUploadField)super.setDefaultModel(model);
> if (model == null)
> super.setDefaultModel(null)
> else
> super.setDefaultModel(new ListModel<FileUpload>(Arrays.asList(model.getObject())));
> return this;
> }
> Just like the constructor.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira