• Post Reply Bookmark Topic Watch Topic
  • New Topic

t:message tag in a datalist  RSS feed

 
Susanne Andersson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?

Best Regards
Susanne
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!