Open a Modal Window within a Panel from a FileUpload form

2009-05-27 Thread Lina Thomas
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


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

2009-05-27 Thread Douglas Ferguson

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



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

2009-05-27 Thread Douglas Ferguson

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