Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.2.4
-
None
Description
An exception is throw when trying to render a Form whose validate parameter is bound to a bean that is null after onActivate():
ERROR tapestry.render.br.com.eteg.cromoup.pages.acesso.EditarPermissao - Render queue error in BeginRender[acesso/EditarPermissao:nome]: Class cannot be null
The attached files show a scenario where the bug occur. Basically it shows an edit page that initialize a bean (that is bound to the validate parameter of the Form) at onValidate() if a not-null id is passed as the initialization context. If the id is null the bean is initialized at onPrepare(), just after the Form starts to render itself. The problem seems to happen because the "prepare" (and "prepare_to_render") event are triggered after the Form component pushes a BeanValidationContextImpl into the Environment.