Hi Martin,

Thanks for your answer!

I was thinking I did no have a submit button to provide (and that the form
was submitted using a div#onclick (wicket 1.5))
But... As I have a submit button, I can supply it in the
wicketSubmitFormById method...

Thanks again!
Sebastien.

On Mon, Jan 28, 2013 at 8:58 AM, Martin Grigorov <[email protected]>wrote:

> Hi,
>
> The signature of this method is (Wicket 1.5.x and earlier) :
>      function wicketSubmitFormById(formId, url, submitButton,
> successHandler, failureHandler, precondition, channel)
> i.e. there is a way to specify the submitting button. If you use the
> inputName of a button from the outer form then it should do exactly what
> you need.
>
>
> On Sun, Jan 27, 2013 at 3:28 PM, Sebastien <[email protected]> wrote:
>
> > Hi all,
> >
> > I have an inner form, and I would like this inner form to not being
> > processed when the parent form is submitted, like described here:
> > https://cwiki.apache.org/WICKET/conditional-validation.html
> >
> > The problem, in my case, is that this inner-form is posted with
> > 'wicketSubmitFormById', so do I not have any "submitting button" and
> > #findSubmittingButton naturally returns null.
> > But as I am processing the form using an IFormSubmitter, I would like to
> > write something that could looks like this (in my inner form):
> >
> >     public boolean processChildren()
> >     {
> >          IFormSubmitter submitter = this.getFormSubmitter(); //!\\
> >
> >         return submitter != null && submitter.getForm() == this;
> >     }
> >
> > But I do not have any equivalent for #getFormSubmitter()...
> >
> > Any ideas?
> >
> > Thanks in advance,
> > Sebastien.
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>

Reply via email to