myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Goupil" <goupilpie...@gmail.com>
Subject treecheckbox
Date Fri, 13 Jul 2007 14:54:02 GMT
Hello all,

I'm currently trying to have the treecheckbox component working. I'm able to
display a simple (no checkbox) tree as well as a couple of chexboxes, but I
can't figure out how to bind them together in order to display a tree which
would allow to (un)select each one of its nodes.

I've looked through the JavaDoc, of course, but the Tree component is only
partly documented and the treeChexbox component doesn't provide me enough
stuff either.

Here is my code :

***************************
<f:view>

    <h:form>


<input type="file" name="file" size="40" maxlength="40">
<input type="submit" value="Send">    <br><br>


  <t:selectManyCheckbox id="check" layout="spread">
</t:selectManyCheckbox>

<t:treeCheckbox id="tree1"  for="check"  itemLabel="label1"
itemValue="label1"/>
<t:treeCheckbox id="tree2"  for="check"  itemLabel="label2"
itemValue="label2"/>
<t:treeCheckbox id="tree3"  for="check"  itemLabel="label3"
itemValue="label3"/>
<t:treeCheckbox id="tree4"  for="check"  itemLabel="label4"
itemValue="label4"/>

<t:tree id="tree" value="#{nameBean.tree}"
                styleClass="tree"
                nodeClass="treenode"
                selectedNodeClass="treenodeSelected"
                expandRoot="true">
        </t:tree>


</h:form>

</f:view>
***************************

If anyone has a clue...

Regards,

Pierre


-- 
Ce matin, j'ai fait un rêve si beau qu'il m'a reveillé.
Je me suis levé avec le soleil et j'ai dis :
"il est l'heure de vivre la vie que tu t'es imaginé".
Mime
View raw message