You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Matthias Wessendorf <mw...@gmail.com> on 2006/01/23 23:10:38 UTC
Re: checkbox and tree2 - Plz, nobody answered this question yet!
Ennio-
what you can do is, using the nbuild's clazz
"org.apache.myfaces.custom.tree2.TreeNodeChecked" inside of your
backing bean
in your jsp page you can use something similar to this:
<f:facet name="analysisFolder">
<h:panelGroup>
<h:selectBooleanCheckbox value="#{node.checked}" />
<t:graphicImage value="images/yellow-folder-closed.png" border="0"/>
<h:outputText value="#{node.description}" styleClass="nodeFolder"/>
</h:panelGroup>
</f:facet>
Regarding usage of tree2 itself I recommend the sample files, which
contain some cool examples, done by Sean.
-Matthias
On 10/17/05, Ennio Tosi <en...@gmail.com> wrote:
> I searched all over the myfaces ml, myfaces wiki and sun's forum, but I
> couldn't find an answer about how one can handle multiple selections (with
> checkboxes) of tree2 nodes.
> Is there someone that can give me a little hint?
>
> Thanks,
> Ennio
>
--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com