You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Todd Patrick <To...@dtn.com> on 2006/06/14 21:18:10 UTC
How do I highlight the selected node in tree2?
I've search the mailing list on how to highlight the selected node in
tree2, however what method or setting can accomplish this?
Thanks,
--Todd
Re: How do I highlight the selected node in tree2?
Posted by Hailong Zhang <to...@gmail.com>.
Hi Todd,
<t:tree2> has a property called varNodeToggler.
Usage:
<t:tree2 id="clientTree" value="#{TreeBean.commentTreeData}" var="node"
varNodeToggler="t" clientSideToggle="true">
<h:outputText value="[Selected]" rendered="#{t.nodeSelected
}"></h:outputText>
2006/6/15, Faisal Mahmoud <fa...@gmail.com>:
>
> Hi Todd,
>
> Perhaps you can have a property that is set for that node when selected,
> and then use an EL statement to change the styleclass attribute depending on
> the value of that property.
>
> -Faisal
>
> ------------------------------
> *From:* Todd Patrick [mailto:Todd.Patrick@dtn.com]
> *Sent:* Wednesday, June 14, 2006 12:18 PM
> *To:* MyFaces Discussion
> *Subject:* How do I highlight the selected node in tree2?
>
> I've search the mailing list on how to highlight the selected node in
> tree2, however what method or setting can accomplish this?
>
> Thanks,
>
> --Todd
>
RE: How do I highlight the selected node in tree2?
Posted by Faisal Mahmoud <fa...@gmail.com>.
Hi Todd,
Perhaps you can have a property that is set for that node when selected, and
then use an EL statement to change the styleclass attribute depending on the
value of that property.
-Faisal
_____
From: Todd Patrick [mailto:Todd.Patrick@dtn.com]
Sent: Wednesday, June 14, 2006 12:18 PM
To: MyFaces Discussion
Subject: How do I highlight the selected node in tree2?
I've search the mailing list on how to highlight the selected node in tree2,
however what method or setting can accomplish this?
Thanks,
--Todd