This discussion is archived
3 Replies Latest reply: Dec 5, 2012 7:57 PM by Vik Kumar RSS

switching styleClass by EL doesnt work

Vik Kumar Explorer
Currently Being Moderated
I am trying to switch style class as
styleClass="#{row.Status eq 'Inactive'? 'inactive': row.Status eq 'Draft'?'draft':''};">


but it doesnt work. I have tried to replace it with hardcoded values like styleClass="inactive" and that works fine.

Please advise what could be the issue here?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points