• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<hx:dataTableEx how to display an image based on column data

 
Dan MacLeod
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to JSF, hope this isn't too stupid of a question.

I have a <hx:dataTableEx> datatable and I would like to display an image in a column if the column data is a certain value.

For example: if my table contains a column that maps back to myBean.alert and alert is set to true, I want to display an image in the column, if alert is set to false, don't display anything.

Any help would be greatful

Thanks
Dan


 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make use of the 'rendered' attribute.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic