Re: ValidationDecorator using zone updates don't seem to work

2010-12-27 Thread Matheus Eduardo Machado Moreira
Hi! Sorry about resurrecting this thread but a have a similar requirement (render a decoration (eg an '*') in front of labels of every required field) and some problems. I'd like to render the decoration with the same style as the label when the field is in error. My custom ValidationDec

Re: ValidationDecorator using zone updates don't seem to work

2010-11-10 Thread Denis Stepanov
Ajax response uses PartialMarkupRenderer via contributePartialMarkupRenderer. Denis On 9.11.2010, at 17:00, Hugo Palma wrote: > I contributed a custom ValidationDecorator which in my case simply adds a > "*" to the label of every required field. > > This works fine except when i update a zone w

Re: ValidationDecorator using zone updates don't seem to work

2010-11-10 Thread Hugo Palma
The doesn't seem to be on the render but on the injection of the ValidationDecorator into de label component in my case. I've created an issue for this here https://issues.apache.org/jira/browse/TAP5-1339 On Wed, Nov 10, 2010 at 10:20, Denis Stepanov wrote: > Ajax response uses PartialMarkupRende

Re: ValidationDecorator using zone updates don't seem to work

2010-11-10 Thread Denis Stepanov
Try: public void contributeMarkupRenderer(OrderedConfiguration configuration, final Environment environment) { MarkupRendererFilter defaultValidationDecorator = new MarkupRendererFilter() { public void renderMarkup(MarkupWriter writer, MarkupRe

Re: ValidationDecorator using zone updates don't seem to work

2010-11-10 Thread Hugo Palma
Thanks Denis, that worked great. Still, i think this is more of a workaround than a solution right ? Shouldn't this work right out-of-the-box ? On Wed, Nov 10, 2010 at 12:08, Denis Stepanov wrote: > > Try: > >public void > contributeMarkupRenderer(OrderedConfiguration > configuration, fin

ValidationDecorator using zone updates don't seem to work

2010-11-09 Thread Hugo Palma
I contributed a custom ValidationDecorator which in my case simply adds a "*" to the label of every required field. This works fine except when i update a zone with a form. If the form is rendered on page load the ValidationDecorator is executed as excepted, but if i update a zone with a form comp