Indeed, I wrapped my item class in a new one with a new "selected" property to achieve it.
Is it the right way to do it ? Or the decorator would be better ? I don 't have "selected" property is the item class directly.. And it looks like I loose my values for this column every time an action link in the table is activated. How to save them ? Thank you, Stéphane 2011/4/16 Bob Schellink <[email protected]> > Hi, > > So you need to render each row with a Checkbox in one of the columns? You > can use a Decorator for that. You'll also need to wrap the table in a form > to submit the values. > > regards > > Bob > > > On 2011/04/16 14:58 PM, Stéphane NICOLAS wrote: > >> Hello all, >> >> it's been some times since I used click and it looks like I lost good >> habits . :) >> >> I am actually building an application that uses two classes Person and >> Workshop >> I could build a pretty user interface to CRUD those classes, everything >> works fine. >> >> Now, I want People to book workshops from a public web page. >> So basically I want to propose the users all workshops available (i >> thought doing that with a >> Edit-Table Pattern) >> and I want the user to check, in the table, the workshops they are >> interested in. And later get all >> clicked (selected) workshops and build a list out of that, and associate >> this list to a Person. >> >> So in my table, I got a few fields for the workshops. That's fine. But I >> don't know how to deal with >> the checkbox to select them. >> >> The problem I got is how can I associate a boolean in a column that is not >> part of the objects >> field, but rather associated to an object. >> >> Thanks in advance, >> Stéphane >> >> >
