If I understand you, the user uploads an Excel template, and the response is a populated version of that template. In this case, your form's onSubmit() should 1. get the template from an enclosed FileUploadField's model, 2. create a new file for download (temp directory is okay), and 3. schedule a ResourceRequestHandler to return that file.
The last can be accomplished with: IResource resource = new AbstractResource() { protected ResourceResponse newResourceResponse(Attributes attributes) { /* TODO */ } }; RequestCycle.get().replaceAllRequestHandlers(new ResourceRequestHandler(resource, null)); See ByteArrayResource for an example of constructing a resource response. The OutputStream you want is in the Attributes object given to your WriteCallback. Dan On Mon, Apr 8, 2013 at 4:26 PM, mohallo <moha...@qwest.com> wrote: > I have an Excell file that I want to populate with Data . > I am using the FileUploadField component to do this . > The user locates the file that they want to populate throgh the microsoft > popup window . > The issus I am having is locating an OutputStream to populate . > When I access a fileItem OutputStream it is pointing to a Temp location . > > Any Ideas how to approach this . > > Thanks for your help . > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/FileUploadField-best-approach-to-populating-a-file-tp4657832.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >