Re: Create a custom checkbox component

2007-08-10 Thread Martino Piccinato
Yes, there's a "value" parameter you can bind some page method to so that you can easily get/set the !Object in the hidden field from the page (you'll have to cast the object obviously). I think you'll have all your checkboxes inside a For component so I guess you'll iterate over a collection and

Re: Create a custom checkbox component

2007-08-10 Thread Mateus Lucio dos Santos
I like the idea!! But when the browser render this component will I be able to access those attributes? Martino Piccinato wrote: I think you could just make a component using a normal checkbox PLUS two Hidden components ( http://tapestry.apache.org/tapestry4.1/components/form/hidden.html) cont

Re: Create a custom checkbox component

2007-08-10 Thread Martino Piccinato
I think you could just make a component using a normal checkbox PLUS two Hidden components ( http://tapestry.apache.org/tapestry4.1/components/form/hidden.html) containing the parent/child references. Just extend BaseComponent and use one Checkbox plus two Hidden in your new component. Adding str