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: [email protected]
For additional commands, e-mail: [email protected]