There has got to be a solution for this.The problem with using an AjaxButton is that the onSubmit is called *after* the form is submitted, but since there are multiple submit buttons that change the model object just before submit, I need to adjust the model before the form is submitted.
If I use a normal Button, I can adjust the form model but can't close the ModalWindow since I have no ajax target.
- Brill On 24-May-09, at 6:36 PM, Brill Pappin wrote:
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 windowHow do I close the ModalWindow in the form's onSubmit() method without theAjaxRequestTarget? - Brill
smime.p7s
Description: S/MIME cryptographic signature
