You can't submit files with an AjaxButton as AJAX doesn't do multipart (yet). There are solutions with iframes. You could try that.

cheers,
Steve

On 27/05/2009, at 7:46 PM, Douglas Ferguson wrote:

You could use AjaxButton.

This would give you an onSubmit with AjaxRequestTarget in the signature.

D/



Lina Thomas wrote:
Hi Hi

I have a page that has a FileUpload form. Once the file is uploaded
successfully onSubmit of the form I need to open a panel in ModalWindow. There is no Ajax event to fire which leaves me searching for ways to open
the ModalWindow.

I need to open the ModalWindow only on successful upload of the file.

W hen I say success page, I mean within the onSubmit method on the same
page.

Something like this
    Form Form = new Form(FORM_NAME, model)
     {
       private static final long serialVersionUID = 1L;

       @Override
       protected void onSubmit()
       {
         FileUpload upload = uploadField.getFileUpload();
         //open ModalWindow
       }
     }

Thanks
-Lina



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


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to