Adding checkbox to DataTable

I want to add a check box to my data table so the user can select one or more rows for an action (Delete in this case).

Right now, I use a simple ListModel and it's using my java bean data directly.

But, my java bean data doesn't know anything about selection, and thus does not have a "selected" property.

Is there a way that I can create a parallel check box array or something that ties in with my list of rows so I don't have to create a new "checkbox aware" bean for my data?

[508 byte] By [whartunga] at [2007-10-3 9:16:04]
# 1
Just add a new property to the DTO, you don't need to do it in your backing bean.Also see http://balusc.xs4all.nl/srv/dev-jep-dat.html#SelectMultipleRows
BalusCa at 2007-7-15 4:28:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...