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
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
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
Try:
public void
contributeMarkupRenderer(OrderedConfiguration
configuration, final Environment environment) {
MarkupRendererFilter defaultValidationDecorator = new
MarkupRendererFilter() {
public void renderMarkup(MarkupWriter writer,
MarkupRe
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
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