Re: wicket:treetable with checkbox column
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 PropertyCheckboxColumn(new ColumnLocation(Alignment.RIGHT, size, Unit.EM), header, type); how can i get the checkbox selected? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-treetable-with-checkbox-column-tp4650737p4651123.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket:treetable with checkbox column
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.1842946.n4.nabble.com/wicket-treetable-with-checkbox-column-tp4650737p4650744.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket:treetable with checkbox column
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, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket:treetable with checkbox column
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 clicked button,then save all the checkbox value.But now i don't know how to get checkbox value. Can anyone tell me how to achieve this. thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-treetable-with-checkbox-column-tp4650737.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket:treetable with checkbox column
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. Can anyone tell me how to achieve this. thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-treetable-with-checkbox-column-tp4650737.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org