This is actually quite easy to do after all! (Wicket 1.5.3)

I simply added an AjaxFormSubmitBehavior to my FileUploadField like so:

        file.add(new AjaxFormSubmitBehavior(form, "onchange") {

            @Override
            protected void onSubmit(AjaxRequestTarget target) {
                // update image resource
                updateImage();
                // refresh image via ajax
                target.add(image);
            }

            @Override
            protected void onError(AjaxRequestTarget target) {
            }
        });

Cheers,
Bertrand

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to