Hi!
I have the following validation decoration in my AppModule, that is called
and works on regular pages with forms. But the code is not called when I
load a component containing a form inside a zone. The form has one required
field. I put a breakpoint inside the renderMarkup() method, it's hit on
regular render, and not when clicking the event link that loads my zone
containing a form. The form itself is inside a zone, for ajax submit.
public void
contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter>
configuration, final Environment environment) {
MarkupRendererFilter filter = new MarkupRendererFilter() {
public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer)
{
environment.push(ValidationDecorator.class, new
MyValidationDecorator(environment, writer));
renderer.renderMarkup(writer);
environment.pop(ValidationDecorator.class);
}
};
configuration.add("MyValidationDecorator", filter,
"after:DefaultValidationDecorator");
}
Inge