Dear friends,
Here goes the problem.
I've built a tree from database.
Lets say that it specifies types of equipment.
I want manager to have possibility to add new equipment, according to
equipment type, which he should
select from the tree (at least our analyst thinks so).
I've managed to generate and render tree from database, using tomahawk
tree2 tag.
What I need now is a possibility to select any of the nodes or leafs
with a radio button, which
will send equipment_type_id further to the command bean.
The problem is that when I put code like this to the tree2:
---
<t:tree2 value="#{equipmentController.treeData}" var="node"
varNodeToggler="t">
<f:facet name="equipment type">
<h:panelGroup>
<h:selectOneRadio>
<f:selectItem
itemValue="#{node.identifier}"
itemLabel="#{node.description}" />
</h:selectOneRadio>
</h:panelGroup>
</f:facet>
</t:tree2>
---
I get separate set of selectOneRadio sets for each leaf/node.
However it must be possible to select only one leaf/node by clicking
radio button.
Any ideas, how to do it?
Sincerely,
Nikita Koselev