Open a Modal Window within a Panel from a FileUpload form

7 messages Options
Embed this post
Permalink
Lina Thomas

Open a Modal Window within a Panel from a FileUpload form

Reply Threaded More More options
Print post
Permalink
Hey

     I need to open a Panel in a Modal window once a file is successfully uploaded from a FileUploadField in a multipart form. How can I achieve this?
Lina
Lionel Armanet

Re: Open a Modal Window within a Panel from a FileUpload form

Reply Threaded More More options
Print post
Permalink
Hi,

Could you be more precise about your needs ? I there an Ajax event to fire ? Is it only when a success page is rendered ?

Lionel
Lina Thomas

Re: Open a Modal Window within a Panel from a FileUpload form

Reply Threaded More More options
Print post
Permalink
Hi Lionel
              Sorry about that brief description.

 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.

Yes, I need to open the ModalWindow only on successful upload of the file.
Lina
Lionel Armanet

Re: Open a Modal Window within a Panel from a FileUpload form

Reply Threaded More More options
Print post
Permalink
Ok, in that case you can put the Dialog component directly on your success page and set it to setAutoOpen(true)

On Wed, May 27, 2009 at 7:21 PM, Lina Thomas (via Nabble) <[hidden email]> wrote:
FileUpload form



--
__________________________________

Lionel Armanet
WickeXt becomes WiQuery ! http://code.google.com/p/wiquery
gmail: lionel.armanet*at*gmail.com


Lina Thomas

Re: Open a Modal Window within a Panel from a FileUpload form

Reply Threaded More More options
Print post
Permalink
Thanks Lionel!

 When 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
        }
      }

I don't see setAutoOpen() method on a ModalWindow. Should I use a DojoDialog or a YUI dialogue?
Lina
Lionel Armanet

Re: Open a Modal Window within a Panel from a FileUpload form

Reply Threaded More More options
Print post
Permalink
Hi again,

In facts this forum is for WiQuery users, a integration framework between jQuery and Wicket. I think you should post on a forum related to YUI or dojo integrations.

Lionel

On Wed, May 27, 2009 at 7:49 PM, Lina Thomas (via Nabble) <[hidden email]> wrote:
Thanks Lionel!

 When 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
        }
      }

I don't see setAutoOpen() method on a ModalWindow. Should I use a DojoDialog or a YUI dialogue?
Lina



--
__________________________________

Lionel Armanet
WickeXt becomes WiQuery ! http://code.google.com/p/wiquery
gmail: lionel.armanet*at*gmail.com


Lina Thomas

Re: Open a Modal Window within a Panel from a FileUpload form

Reply Threaded More More options
Print post
Permalink
I'm sorry. I just realized I'm on the wrong forum. Sorry about that.
Lina