On Tue, 21 Dec 2010 14:37:56 -0200, Matias Blasi <[email protected]> wrote:

Hi!

Hi!

I was trying with a persistent flag

boolean onPrepareForSubmit() {
    return !this.processing;
}

Object onSuccess() {
    this.processing = true;
// do stuff
    this.processing = false;
return this;
}

I was disapointed when I saw that the 'Succes' event is fired even when the prepareForSubmit handler returned false.

Try validateForm return "this" instead of the prepare events. They're return values are ignored.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to