You definitely don't want to put a tree in a checkbox, you want to put
the checkbox in the tree:
<tr:tree var="foo"
value="#{transactions.tree.model}"
binding="#{rransactions.transactionsTree}"
selectedRowKeys="#{text}"
id="transnTree">
<f:facet name="nodeStamp">
<tr:selectBooleanCheckbox
id="checkBoxSelection"
value="#{foo.selected}"
text="#{foo.text}"/>
</f:facet>
</tr:tree>
On Mon, Mar 3, 2008 at 2:39 AM, mikeatx
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm facing a problem:
> I have a <tr:tree on my page and I want to have a check box for each child
> of the tree.
> So I've tried the folowing code, but it don't work, even my tree is no more
> displayed.
> - transaction is my backing bean and isdSelected is a String[]
>
> <tr:selectManyCheckbox id="checkBoxSelection"
> value="#{transactions.idsSelected}">
> <tr:tree var="foo"
> value="#{transactions.tree.model}"
> binding="#{rransactions.transactionsTree}"
> selectedRowKeys="#{text}"
> id="transnTree">
> <f:facet name="nodeStamp">
> <tr:selectItem value="#{foo.id}" label="lab"/>
> <tr:outputText value="#{foo.text}""/>
> </f:facet>
> </tr:tree>
> </tr:selectManyCheckbox>
>
> Thanks in advance for your comments
>
> --
> View this message in context:
> http://www.nabble.com/Problem-%3Ctr%3Atree-with-%3Ctr%3Aselectmanycheckbox-tp15799916p15799916.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>