Hi Lukas,

unfortunately the whole case is a bit more difficult because I am using nested components. The situation is visulised in this screenshot:
http://wuetender-junger-mann.de/screenshot-nested-components.png

The trouble is, that the embedded components don't have access to the errors, as the outer component starts calling into the descriptors and inside the validation logic there is no reference to the embedded components, so the errors can't be added to those.

I am a bit lost. Should I perhaps abandon the idea of flattening multiple objects into a single form?

Cheers,
Felix


On Tue, Apr 14, 2009 at 4:19 PM, Lukas Renggli <renggli@gmail.com> wrote:
> is there anyway to visualize errors next the components that caused them?

Sure. The default renderer MATableRenderer adds the class '.error' to
the element, so that you can highlight the validation errors using CSS
styles.

I assume that you also want to display the error message somewhere
close-by? In this case you have to implement your own renderer and
assign it to the container description (see the reference to
MATableRenderer).

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki