You have to force Wicket to avoid reloading the page after the file has been
uploaded. I've used the following code in the Form#onSubmit() method:


           // avoid redirection
           // Tell Wicket we're going to do the redirect ourselves.
           getRequestCycle().setRedirect(false);
           // Make sure no output for the current cycle is ever sent.
           getRequestCycle().setRequestTarget(
EmptyRequestTarget.getInstance());




- Paolo




On 2/1/07, Henning Bredel <[EMAIL PROTECTED]> wrote:

Hi,

is there a way, to handle an upload with ajax?

I have a form with some textfields and an upload (like the example).
After uploading, the form loads again and all made entries in the
textfields
are gone.

thanks in advance

Henning

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to