Data Table's records display condition wise.

I have a problem like this:

My Data Table is like This

SELECTNAMEAGESTATUS

ABC25DONE

XYZ20NEW

BBB18DONE

A12328NEW

NOTE: Select Column have check boxes.

I want to display my table like this:

When STATUS is DONE, this row should be disable. I mean to say, check box should be unselectable. If Status is NEW than check box should be selectable.

thanks.

[416 byte] By [Manish_Paliwala] at [2007-11-27 10:46:17]
# 1

You can use EL in the 'disabled' attribute:<h:selectBooleanCheckbox disabled="#{item.status == 'DONE'}">

BalusCa at 2007-7-28 20:18:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

thanks

Manish_Paliwala at 2007-7-28 20:18:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...