Re: Uploading files without page reload

2007-08-09 Thread Paolo Di Tommaso
I've done that having the upload form specifying an hidden iframe as target
and - above all - having the following code in the Form#onSubmit() method

// 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 8/9/07, Al Maw <[EMAIL PROTECTED]> wrote:
>
> legol wrote:
> > Hi all,
> >
> > I have problem with uploading files. My uploading file form is placed in
> > modal window and after submitting comunicate appears that modal window
> will
> > be closed. What I want is situation when after submitting modal window
> is
> > still visible. The best solution would be not reloading page but i read
> > somewhere that it is impossible  to upload file via ajax. I tried to do
> > something with PageParameters but to show modal window AjaxRequstTarget.
> >
> > Pls help.
>
> The only way to do this, I think, is to embed your file upload inside an
> iframe. That way, you're doing a proper page submit.
>
> Regards,
>
> Al
> --
> Alastair Maw
> Wicket-biased blog at http://herebebeasties.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Uploading files without page reload

2007-08-09 Thread Al Maw

legol wrote:

Hi all,

I have problem with uploading files. My uploading file form is placed in
modal window and after submitting comunicate appears that modal window will
be closed. What I want is situation when after submitting modal window is
still visible. The best solution would be not reloading page but i read
somewhere that it is impossible  to upload file via ajax. I tried to do
something with PageParameters but to show modal window AjaxRequstTarget. 


Pls help.


The only way to do this, I think, is to embed your file upload inside an 
iframe. That way, you're doing a proper page submit.


Regards,

Al
--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]