I assume you're on T4. I think I have found a simpler solution to the question "what should Checkbox map to?". I just created custom ContainsBinding and ContainsBindingFactory that parse path string to object and collection OGNL expressions and create OGNL bindings for them. The ContainsBinding behaves in the following way: 1. In setObject() it accepts Boolean and adds or removes object to/from collection according to passed boolean value. 2. In getObject it just returns collection.contains( object )
Then I just create a kind of "objectsToDelete" property of some Collection type and use value="contains:components.table.tableRow in objectsToDelete" for Checkbox. In listener I sweep through objectsToDelete and remove them from persistent storage. This ContainsBinding is obviously also very useful in general situation where you mark if elements of list/table belong to some collection. -- Best, Simeon Koptelov
pgp3zgcEj7FB1.pgp
Description: PGP signature
