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 strange, non standard, attributes to tags your browsers will see is never a good idea :-) On 8/10/07, Mateus Lucio dos Santos <[EMAIL PROTECTED]> wrote: > Hi! > I need to display a checkbox in a webpage. This checkbox work as a node > in a treeview, so i need to save in the checkbox tag which node is his > parent and which node are his children. > > I tried to simply add two attributes to the checkbox tag like this > <input id="test" type="checkbox" parent="parent" children="children" /> > it works just fine in I.E but firefox doesn't recognize the parent and > children attributes, thats why i'm trying to solve this creating a > component that has those attributes. > > I'm a beginner using tapestry so i'm clueless about how to create a > component that works the this way. > Can any one send me some material or explain me how to create this > component? > > Thanks in advance > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]