You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by lxw_first <lx...@hotmail.com> on 2012/07/23 19:28:28 UTC
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket:treetable with checkbox column
Posted by lxw_first <lx...@hotmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket:treetable with checkbox column
Posted by Sven Meier <sv...@meiers.net>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket:treetable with checkbox column
Posted by lxw_first <lx...@hotmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket:treetable with checkbox column
Posted by Sven Meier <sv...@meiers.net>.
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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org