If all you're saying is that you need to do it from your form's onsubmit, do 
this:

AjaxRequestTarget art = AjaxRequestTarget.get();
if (art != null) {
 modal.close(art); 
}

Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-----Original Message-----
From: Brill Pappin <[email protected]>
Sent: Sunday, May 24, 2009 5:36 PM
To: [email protected]
Subject: Re: closing a ModalWindow from a forms onSubmit?

I likely could but am trying to avoid that, because then I have to  
call it for every button in the form (there are 4 now, all set a state  
and allow the event to propagate to the forms onSubmit().
Is there no way to know the current context from the component itself?


- Brill

On 24-May-09, at 5:55 PM, James Carman wrote:

> Can you submit the form via ajax?
>
> On May 24, 2009 2:08 PM, "Brill Pappin" <[email protected]> wrote:
>
> I have a form in a model window
> How do I close the ModalWindow in the form's onSubmit() method  
> without the
> AjaxRequestTarget?
>
> - Brill



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to