Hello everyone!

I have a simple data table with one editable column,
containing text fields that accept date values. The
text field is naturally associated with a dateTime
converter. I would like to display error messages
outside the data table (preferably before the data
table), however I can’t figure out a way to add some
text to messages that will associate them with a
specific table row (i.e. how to get a message like
“Error in row 3: Value is not a date”).  Any ideas on
how this can be done? (Hopefully not by implementing
my own converters and validators!).

So far I’ve tried one solution I found here
http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk7.html?_template=/ocom/technology/content/print
which uses a phase listener to look in component
attributes for the text to be added to the component’s
messages. This solution will not work though, if you
want to add row-specific information to messages for
data table text fields. 

I have also found a previous post
(http://www.mail-archive.com/[email protected]/msg10145.html)
that lead to issue MYFACES-735 on the bug database
(http://issues.apache.org/jira/browse/MYFACES-735),
which seems to be the same case. The issue reporter
suggests the t:messages component incorrectly assumes
that the column header is the label for all input
fields in the column. However, no one has commented on
whether this is a bug or a feature (Frode Oldervoll if
you are reading, and have found out a solution, please
let me know!).

Hopefully this isn’t yet another faces dead end. Any
help will be appreciated.
Mario









                
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

Reply via email to