wood burning stoves 2.0*
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 ?
subject: Problems highlightning cell in <t:dataTable
Similar Threads
Empty text Field Validation in JSF data Table
onblur is not called in inputText ...please help me if any body had same situation or aware of issue
Display background color
setting up hashmap key in t:SelectBooleanCheckbox in a dataTable