Wicket uses an iframe internally for Ajax file uploads.

On Wed, Dec 5, 2012 at 11:55 AM, pureza <pur...@gmail.com> wrote:

> I was able to get rid of the submit button, but I don't understand why it
> works (maybe some wicket magic?).
>
> I have a Form object and in the onSubmit() method I read the uploaded file
> and store it in a model. I also added an AjaxFormSubmitBehavior to the form
> that updates the textarea with the contents of the file via ajax.
>
> The markup is simply:
>
>
> This works fine (i.e. when I choose a file to upload the textarea is
> updated
> with the file's contents), but I don't understand why. The form submission
> does not refresh the whole page, but I was told that the only way I could
> do
> this was using an iframe, which I'm not doing. Please note that I am also
> not using any kind of upload library such as jquery-file-upload.
>
> Do you have any idea as to why this works the way it does? I'm clueless...
>
> Thanks!
>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Upload-file-and-display-its-contents-using-AJAX-tp4654473p4654508.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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to