On Tue, 28 Dec 2010 13:55:06 -0200, Matheus Eduardo Machado Moreira <matheus....@gmail.com> wrote:

   Reading the Form component class (beginRender() method) I found that a
BeanValidationContextImpl is pushed into the Environment before
"prepareForRender" and "prepare" events are triggered. I could handle the
problem combining the code of the methods onActivate() and
prepararFormulario() on the method onActivate(). Yet I think that the
situation represents a bug and maybe it is simple to correct - just
move *environment.push(BeanValidationContext.class,
new BeanValidationContextImpl(validate));* (Form.class line 393) below
*resources.triggerEvent(EventConstants.PREPARE,
context, null);* (Form.class line 408).

This looks like a bug. Please file a ticket at the tapestry-beans-validation project at JIRA.

--
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