You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Adam <ad...@softfab.com> on 2006/02/07 13:40:58 UTC

Extending JTree2 node - tooltip

Dear All,

I have had a request to allow for some "tooltip" style information to 
popup when a mouse goes over a given node.

The outputText title attribute does this, but how can I set that from a 
value contained within a node?

i.e. I would like to extend the TreeNode to include a String field 
called (say) toolTipText. I create the getter & setter etc & then I'd 
like to be able to have something like:

<h:outputText value="#{node.description}" title="#{node.toolTipText}" 
styleClass="nodeFolder" />


Has anyone got any idea of how I can do this/ how I can extend node to 
include other fields which are accessible from the jsf/jsp?

TIA


Adam