I
believe that, if you use <t:messages>, it will use the name given in the
column header (for dataTables) or the associated outputLabel (in other
cases).
I put
in a request to expand <t:messages> to optionally take the
component's identifying name from the component's title attribute. I
was going to try to do this patch myself, but then I got bogged down in getting
a clean compile from the code I got from Subversion, so I haven't made much
progress in that regard.
-
Brendan
-----Original Message-----
From: Dave [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 12:36 AM
To: [email protected]
Subject: how to set id in dataTable.In the dataTable, I like to set id for inputText so that the JSF validator can give user a nice message when it is required but empty. The id can not bind to an EL, but in dataTable all values should come from data model to be meaningful. Current message like:_id39: value required.The id is generated by JSF. From the Id ,users does not know which field is required.Thanks for ideas.Dave
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.

