jQuery in Action, 3rd edition
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

Problems highlightning cell in <t:dataTable

Carlos Bonzilla

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.


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 ?
I agree. Here's the link: http://aspose.com/file-tools
subject: Problems highlightning cell in <t:dataTable
It's not a secret anymore!