Re: T3: CheckBox

2007-09-05 Thread Nick Westgate
ListPropertySelectionModel and NamedListItem are regular a classes. Put them wherever you like. To use them, create your model from a list of objects that implement the NamedListItem interface. selectionModel = new ListPropertySelectionModel(itemList); Cheers, Nick. Nazmul Bhuiyan wrote:

Re: T3: CheckBox

2007-09-05 Thread Nazmul Bhuiyan
Hi Nick, Few more basic questions: To use contrib's component I have added the following lines in my .application file as below: How should I define the path to use the ListPropertySelectionModel as there is no library. I'm getting path exception. Can you please please give me some example

Re: T3: CheckBox

2007-09-05 Thread Nick Westgate
You can write your own selection model, or of course use what others have already written to address this problem. Check out this thread: http://www.nabble.com/Multiple-Select-tf144431.html#a400648 Since you are using a list it's easiest to use Robert's ListPropertySelectionModel. http://www.ta

Re: T3: CheckBox

2007-09-04 Thread Nazmul Bhuiyan
Hi Nick, Is there any method that I can use to create a ObjectPropertySelectionModel model instead of StringPropertySelectionModel as below? public static final IPropertySelectionModel theModel = new StringPropertySelectionModel(new String[] {"a", "b", "c"}); My page displays a li

Re: T3: CheckBox

2007-09-02 Thread Nick Westgate
You'll want to use the MultiplePropertySelection component: http://tapestry.apache.org/tapestry3/doc/api/org/apache/tapestry/contrib/form/MultiplePropertySelection.html If you need to change the rendering style you can just grab the source for the default renderer (which generates a table) and ch

Re: T3: CheckBox

2007-09-02 Thread Nick Westgate
It depends how T3's method matching works, but you might need: public void formSubmit(IRequestCycle cycle) Note the I in IRequestCycle. Cheers, Nick. Nazmul Bhuiyan wrote: Hello, I’ve a list of objects displayed in a page. I want to collect ids of selected object by adding a check box fo