Once the file is uploaded, set the contents of the IModel backing the TextArea, and then add the Form(or TextArea) to the AjaxRequestTarget.
On Tue, Dec 4, 2012 at 11:51 AM, pureza <pur...@gmail.com> wrote: > Hi, > > I need to upload a file, parse it and display its contents inside a > textarea, all this using ajax. > > At first I tried to use jquery-file-upload, and I was able to upload the > file to an IResource as explained at > http://wicketinaction.com/2012/11/uploading-files-to-wicket-iresource/. > However, I have no idea as to how to display the contents of the file > inside > the textarea when the upload is finished. > > Then I tried to use a plain FileUploadField component and I attached an > AjaxFormSubmitBehavior to it, but it seems that the model is always null > and > I am unable to access the uploaded files. > > Any help is appreciated. > > Thanks! > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Upload-file-and-display-its-contents-using-AJAX-tp4654473.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 > >