aspose file tools
The moose likes JSF and the fly likes  t:message tag in a datalist Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark " t:message tag in a datalist" Watch " t:message tag in a datalist" New topic
Author

t:message tag in a datalist

Susanne Andersson
Greenhorn

Joined: Jan 25, 2010
Posts: 1
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: t:message tag in a datalist
 
Similar Threads
Custom message tag quite like (or utilizing) t:message
Any solution for h:graphicImage using rich:toolTip
displaying errors in jsf fragment with <t:message> tag
Page not getting submitted if my text box is not part of backing bean...
h:message and t:message problem