aspose file tools*
The moose likes JSF and the fly likes Problems highlightning cell in <t:dataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problems highlightning cell in <t:dataTable " Watch "Problems highlightning cell in <t:dataTable " New topic
Author

Problems highlightning cell in <t:dataTable

Carlos Bonzilla
Greenhorn

Joined: May 03, 2011
Posts: 17
I have a <t:dataTable with several rows and columns. Each cell in the table consists of a <h:inputText. The value entered in that <h:inputText is then validated by a Validator.

If the cell fails validation, I want it to have red background color. This is the part that does not work. The validation fails, but the cell is not getting red background.

BUT, if a have the same t:column definition outside the table, the validation works fine and the cell is getting red background.

Ex

To make the cell red I have made a custom PhaseListener with the following pseudocode


So the question is : Why is the component inside the datatable considered as valid, if it has failed validation ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problems highlightning cell in <t:dataTable