You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Michael Baranov <mi...@gmail.com> on 2006/04/20 11:13:46 UTC
treetable questions
Hello!
I'm modeling a treetable much like in examples:
<t:tree value="#{fileManagerBean.treeModel}" var="node"
styleClass="borderTable" columnClasses="cell,cell,cell">
<t:column>
<h:selectBooleanCheckbox />
</t:column>
<t:treeColumn>
<t:outputText value="#{node.name}" />
</t:treeColumn>
<t:column>
<h:outputText value="#{node.path}" />
</t:column>
</t:tree>
Question 1:
in the scenario above, the tree column doesn't get the CSS cell
class. Is there a way to specify one? Any tricks? :-)
Question 2:
is there a simple way to know what node in the tree was selected
(using <t:commandLink>), like in dataTable ( tableModel.getRowData() )?
Question 3:
what's the use of <t:treeCheckbox> ? Au usual
<h:selectBooleanCheckbox /> will not do?
Thank you so much!!!
Michael.
<ci...@gmail.com>
Re: treetable questions
Posted by Matthias Wessendorf <ma...@apache.org>.
> Question 2:
> is there a simple way to know what node in the tree was selected (using
For tree2 there is a TreeNodeChecked impl of TreeNode
The post in [1] might be helpful for you.
Regards,
Matthias
[1] http://tinyurl.com/s8qx4