the create treetable code like this:
treeTable = new TreeTable("treeTable", createTreeModel(), columns);
treeTable.getTreeState().setAllowSelectMultiple(true);
treeTable.setRootLess(true);
treeTable.getTreeState().collapseAll();
creatForm.add(treeTable);
the columns code:
new PropertyCheckboxColum
Each checkbox writes a boolean into your tree's node.
You'll have to loop through all nodes and check which one has its property
set.
If that's to tedious for you, you should use CheckGroup/Check. See FormInput
in wicket-examples.
Sven
--
View this message in context:
http://apache-wicket.184
checkbox.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/wicket-treetable-with-checkbox-column-tp4650737p4650743.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe,
Are you using CheckGroup/Check or Checkbox?
Sven
On 07/23/2012 07:28 PM, lxw_first wrote:
Hello,
I have a treetable with two column.one column is PropertyTreeColumn,other
column is CheckColumn,similar with the PropertyTreeColumn.After I selected
or not selected checkbox in the treetable,i clic
Hello,
I have a treetable with two column.one column is PropertyTreeColumn,other
column is CheckColumn,similar with the PropertyTreeColumn.After I selected
or not selected checkbox in the treetable,i clicked button,then save all the
checkbox value.But now i don't know how to get checkbox value.
C