I have implemented an ajax upload using wicket, but you still have to use
the common trick to submit to an hidden <iframe />. For example:

<iframe name="uploadtarget" style="display:none" ></iframe>
<form wicket:id="upload" target="uploadtarget" >
<input type="file"wicket:id="file" />
</form>

Submitting to an hidden frame you will need to prevent wicket to send a
response using the following code in the Form#onSubmit()

// 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());


Sorry if the first time I gave an incomplete response to the problem.

Paolo



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

Johan Compagner schrieb:
> i have no idea about a workaround. I just know that everytime that
> question picks up
> everytime the answer is no doesn't work
>
> And i don't think it is a w3c standard.. Those guys don't really make
> the standards nowadays i think.
>
> johan
>
>
> On 2/1/07, *Henning Bredel* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Johan Compagner schrieb:
>     >
>     >     Henning Bredel schrieb:
>     >     > Hi,
>     >     >
>     >     > is there a way, to handle an upload with ajax?
>     >
>     >
>     > not  as far as i know.
>     >
>     > johan
>     >
>     >
>     >
>
------------------------------------------------------------------------
>     >
>     >
>
-------------------------------------------------------------------------
>     > 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
>     <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     >
>
------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > Wicket-user mailing list
>     > Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     > https://lists.sourceforge.net/lists/listinfo/wicket-user
>     <https://lists.sourceforge.net/lists/listinfo/wicket-user>
>     >
>     Thx, for answering -- but, perhaps this was not the last question:
is
>     there a workaround
>     or is it simply unusual or not w3c conform to handle it that way?
>
>     regards
>
>
-------------------------------------------------------------------------
>
>     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
>     <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/wicket-user
>     <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
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
Okay -- thx for your effort

-------------------------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to