I may not be understanding your question correctly, but if you're adding the input sub-components programatically, you could add the associated message sub-components programatically at the same time. Call setId() on each input component to give it its own ID that you can then use in for= "" the corresponding message component.

/dmc

--
David Chandler
Development Coach
learnjsf.com

On 11/14/06, David Delbecq <[EMAIL PROTECTED]> wrote:
Hi,

I have a custom component ( let's say assume has id X ) that is made of
several Input component ( let's say X:a, X:b, X:c)

Is it possible to have the error messages for X also contains the error
for X:a X:b and X:c. I  assume user will want something like
<h:message for="">
and not have to write

<h:message for=""><h:message for=""><h:message for=""><h:message for=""

Is there some mechanics in myfaces that can be of any help to me? Do i
have to manually transfer message in the component, and if yes, when?



Reply via email to