-
1. Re: Problem with rich:tree and rich:tooltip
chris2209 Mar 26, 2012 5:47 AM (in response to chris2209)I found the solution. We just have to move the rich:tooltip tag into the <a4j:outputPanel>
<a4j:outputPanel id="tr_a4joutputpanel">
<rich:dragIndicator id="tr_ind" acceptClass="accept"
rejectClass="reject" draggingClass="default">
<h:outputText value="#{node}" />
</rich:dragIndicator>
<rich:dragSource type="#{node.type}" dragValue="#{node}"
dragIndicator="tr_ind" />
<rich:dropTarget acceptedTypes="#{node.type}"
dropListener="#{treeBean.processDrop}" execute="@this"
dropValue="#{node}" render="@all">
</rich:dropTarget>
<h:outputText value="#{node}">
</h:outputText>
<rich:tooltip followMouse="false" mode="ajax"
ajaxChildActivationEncodeBehavior="none"
styleClass="tooltip-custom-body" layout="block">
<span style="white-space: nowrap"> #{node} <br />
</span>
</rich:tooltip>
</a4j:outputPanel>
I hope this will help someone... Kind regards