Why re-invent the wheel? Take a look at the examples for Wicket Components at: http://www.wicket-library.com/
The Wicketstuff InMethod Grid's "Editable TreeGrid": http://www.wicket-library.com/inmethod-grid/tree-grid/editable The project you're looking for is at: https://github.com/wicketstuff/core/wiki/InMethodGrid ~ Thank you, Paul C Bors On Jan 28, 2013, at 21:24, grazia <[email protected]> wrote: > This is what I did, comments are welcome. > On each row, I have an "action's" cell (actions like "save" or "delete"). > That cell is represented by a class that extends Panel. Its constructor > takes an id and a PropertyModel as arguments. The PropertyModel allows me to > get the tree node in that row. > > final DefaultMutableTreeNode node = > ((DefaultMutableTreeNode)inputModel.getTarget()); > final MyObject obj = (MyObject)node.getUserObject(); > > > Please let me know if there is a better way. Thanks. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/editable-tree-table-make-an-editable-row-rather-than-an-editable-cell-tp4655768p4655859.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
