On Thu, 10 Nov 2011 08:31:28 -0200, goldenka <maja.polon...@gmail.com> wrote:

Hi,
I'm trying to clear errors which happened before - so eg. user inserted
invalid date => pressed Download => error

void onValidateForm() {
    if(dateTo == null) {
           form.recordError("Please insert valid date to!");
           return;
    }
}

but after that user corrected the date and pressed Download => the file is downloading but the error "Please insert valid date to!" is still in the
form.

It's still there because you cleared the form errors server-side, not client-side. As you're returning a StreamResponse, no changes are done in the page DOM. In addition, as Steve said, onSuccess() will never be invoked with validation errors.

--
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: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to