Bugs item #1138665, was opened at 2005-02-17 23:58 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1138665&group_id=119783
Category: core Group: 1.0 Status: Open Resolution: None Priority: 7 Submitted By: Eelco Hillenius (eelco12) Assigned to: Jonathan Locke (jonathanlocke) Summary: Upload does not integrate with Wicket Initial Comment: The upload form component does not integrate well with other Wicket components (Form and FormComponents). Core of the problem is that a multipart request has a different way of encoding parameters. Because of this, request parameters cannot be found as usual. Hence, both validations and model updates fail/ are fed nulls. One strategy to solve this could be to somehow wrap the request and insert the parameters as found with AbstractUploadForm.parseRequest and that are form fields (like: FileItem item = (FileItem)i.next(); if (item.isFormField()) ) in it as request parameters. Not sure if that's (easily) possible; keep in mind that the HttpServletRequest implementations can be immutable (I think at least with Tomcat this is the case) and should thus not be used directly. We should probably first gather and process all form fields, and when they validated, process the uploads. Not sure how the relation between field (e.g. the name) and upload could be made tighter though. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1138665&group_id=119783 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
