maybe you have validation errors and in that case onError will be
called instead.

Regards,

Ernesto

On Fri, Sep 2, 2011 at 5:50 PM,  <martin.ase...@mail.bg> wrote:
>
>
>
> Hello, guys,
>
>
> I'm experiencing some very strange problem - an AjaxButton's onSubmit never
> gets called.
>
>
> Here are snippets of what I have:
>
>
> HTML:
>
>
> ... some fields...
>
>
> in code:
>
>
> Form form = new Form("form");
>
>
> AjaxButton submitButton = new AjaxButton("submit") {
>
>
> public void onSubmit(ART target, Form form) {
>
>
> System.out.println("clicked"); // never printed
>
>
> ... some logic ...
>
>
> }
>
>
> };
>
>
> form.add(submitButton);
>
>
> add(form);
>
>
> The above statement and logic are never reached.
> The Ajax debugger prints nothing.
>
>
> Any help is appreciated.
>
>
> Thanks,
> Martin
>
> -------------------------------------
> Mail.bg: Безплатен e-mail адрес. Най-добрите характеристики на българския 
> пазар - 10 GB пощенска кутия, 20 MB прикрепен файл, безплатен POP3, мобилна 
> версия, SMS известяване и други.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to