Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems highlightning cell in <t:dataTable

 
Carlos Bonzilla
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic