You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by prati <pr...@gmail.com> on 2010/01/14 17:27:49 UTC
Re: Tree table with check box
Hi,
I am also stuck in similar problem.If you can share your code snippets of
how u did that will be of great help.
Thanks
Pratibha
vela wrote:
>
> Hello again,
>
> The links and nodes are added in the TreeFragment class. But the
> TreeFragment is a private inner class in Treetable, could you tell how to
> use the TreeFragment to acheive this functionality
>
>
>
>
>
>
>
>
>
--
View this message in context: http://old.nabble.com/Tree-table-with-check-box-tp26080852p27164039.html
Sent from the Wicket - User 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: Tree table with check box
Posted by prati <pr...@gmail.com>.
Hey it worked,i wanted checkbox in other column
Above apparoach works perfectly.....
Thanks
prati wrote:
>
> Hi Peter,
>
> Many thanks for your reply.My problem is exactly same as second one
> discussed in the post.
> I need checkbox in other column .
>
> Code is
> TreeTable.html
> </tr>
> <tr><td wicket:id="treeTable" class="my-tree"></td>
> <td> </td>
>
> </tr>
> TreeTable.java
>
> public TreeTablePage()
> {
>
> IColumn columns[] = new IColumn[] { col1(), col2() };
>
> tree = new TreeTable("treeTable", createTreeModel(), columns);
> tree.getTreeState().setAllowSelectMultiple(true);
>
>
>
> add(tree);
> tree.getTreeState().collapseAll();
> }
>
>
>
> private PropertyTreeColumn col1() {
> return new PropertyTreeColumn(new
> ColumnLocation(Alignment.MIDDLE, 5,
> Unit.PROPORTIONAL), "Check", "userObject.name");
> }
>
> private PropertyTreeColumn col2() {
> return new PropertyTreeColumn(new ColumnLocation(Alignment.LEFT,
> 7, Unit.EM), "L2",
> "userObject.name") {
>
>
> @Override
> public Component newCell(MarkupContainer parent, String id, TreeNode
> node, int level) {
> DefaultMutableTreeNode n = (DefaultMutableTreeNode) node;
> CheckBoxPanel boxPanel = new CheckBoxPanel("mypanel");
> return boxPanel;
> }
> };
> }
>
> I am getting no getter methods defined for ModelBean.
>
> Am i doing it in a right way particularly HTML
> Thanks
> Prati
>
> aldaris wrote:
>>
>> Hi,
>>
>> check out wicket-tree (http://code.google.com/p/wicket-tree/) and see
>> the example app, I think it will solve your problem.
>>
>> Regards,
>> Peter
>>
>> prati írta:
>>>
>>> Hi,
>>>
>>> I am also stuck in similar problem.If you can share your code snippets
>>> of
>>> how u did that will be of great help.
>>> Thanks
>>>
>>> Pratibha
>>>
>>> vela wrote:
>>>> Hello again,
>>>>
>>>> The links and nodes are added in the TreeFragment class. But the
>>>> TreeFragment is a private inner class in Treetable, could you tell how
>>>> to
>>>> use the TreeFragment to acheive this functionality
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
>
--
View this message in context: http://old.nabble.com/Tree-table-with-check-box-tp26080852p27209139.html
Sent from the Wicket - User 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: Tree table with check box
Posted by prati <pr...@gmail.com>.
Hi Peter,
Many thanks for your reply.My problem is exactly same as second one
discussed in the post.
I need checkbox in other column .
Code is
TreeTable.html
</tr>
<tr><td wicket:id="treeTable" class="my-tree"></td>
<td> </td>
</tr>
TreeTable.java
public TreeTablePage()
{
IColumn columns[] = new IColumn[] { col1(), col2() };
tree = new TreeTable("treeTable", createTreeModel(), columns);
tree.getTreeState().setAllowSelectMultiple(true);
add(tree);
tree.getTreeState().collapseAll();
}
private PropertyTreeColumn col1() {
return new PropertyTreeColumn(new
ColumnLocation(Alignment.MIDDLE, 5,
Unit.PROPORTIONAL), "Check", "userObject.name");
}
private PropertyTreeColumn col2() {
return new PropertyTreeColumn(new ColumnLocation(Alignment.LEFT,
7, Unit.EM), "L2",
"userObject.name") {
@Override
public Component newCell(MarkupContainer parent, String id, TreeNode
node, int level) {
DefaultMutableTreeNode n = (DefaultMutableTreeNode) node;
CheckBoxPanel boxPanel = new CheckBoxPanel("mypanel");
return boxPanel;
}
};
}
I am getting no getter methods defined for ModelBean.
Am i doing it in a right way particularly HTML
Thanks
Prati
aldaris wrote:
>
> Hi,
>
> check out wicket-tree (http://code.google.com/p/wicket-tree/) and see
> the example app, I think it will solve your problem.
>
> Regards,
> Peter
>
> prati írta:
>>
>> Hi,
>>
>> I am also stuck in similar problem.If you can share your code snippets of
>> how u did that will be of great help.
>> Thanks
>>
>> Pratibha
>>
>> vela wrote:
>>> Hello again,
>>>
>>> The links and nodes are added in the TreeFragment class. But the
>>> TreeFragment is a private inner class in Treetable, could you tell how
>>> to
>>> use the TreeFragment to acheive this functionality
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/Tree-table-with-check-box-tp26080852p27208990.html
Sent from the Wicket - User 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: Tree table with check box
Posted by Major Péter <ma...@sch.bme.hu>.
Hi,
check out wicket-tree (http://code.google.com/p/wicket-tree/) and see
the example app, I think it will solve your problem.
Regards,
Peter
prati írta:
>
> Hi,
>
> I am also stuck in similar problem.If you can share your code snippets of
> how u did that will be of great help.
> Thanks
>
> Pratibha
>
> vela wrote:
>> Hello again,
>>
>> The links and nodes are added in the TreeFragment class. But the
>> TreeFragment is a private inner class in Treetable, could you tell how to
>> use the TreeFragment to acheive this functionality
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org