I'd like to use a t:message tag in a datalist, to be able to display individual error messages for each row.
Therefore I need to connect the "for attribute" in the t:message tag with the "id attibute" in the connected t:inputText tag for each row.
(I'm using a hidden input field as I had to have an input field to connect the message tag with.)
I tried to use EL expressions in the "for attribute" and "id attribute" with a value from the backing bean. It works for the "for attribute" in the t:message tag, but NOT for the id attibute" in the connected t:inputText. The id turns out blank.
So my problem is to be able to display unique t:messages for each row in a dataList. I thought the solution was to have dynamic id's on the inputText field and the for attribute in the connected t:message tag. Is that possible?
Is there a better solution?