I kind of remember having the same problem. Did you include the myfaces
extensions filter in your web.xml?
<!-- MyFaces extenstion filter -->
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
</filter>
<!-- Define filter mappings for myfaces extensions filter -->
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
From: Costa Basil <[EMAIL PROTECTED]>
Reply-To: "MyFaces Discussion" <[email protected]>
To: [email protected]
Subject: problem with tree2 plus/minus images
Date: Tue, 7 Mar 2006 19:20:47 -0500 (EST)
I use myfaces 1.1.1. Here is my tree2 tag:
<t:tree2 id="contactsTree"
binding="#{contacts$contactRelations.tree}"
value="#{contacts$contactRelations.treeData}" var="node" varNodeToggler="t"
imageLocation="../../images/tree"
javascriptLocation="../../js" clientSideToggle="true"
preserveToggle="true">
<f:facet name="leaf">
<h:panelGroup>
<h:outputText value="#{node.description}"/>
</h:panelGroup>
</f:facet>
<f:facet name="folder">
<h:panelGroup>
<h:outputText value="#{node.description}"/>
</h:panelGroup>
</f:facet>
</t:tree2>
The problem that I have is that when I click on the icon to expand the node
the image is not changed from plus to minus. If I refresh the page the
plus/minus images are refreshed properly.
Am I doing something wrong here? I did search the mailing list but I
couldn't find anything satisfactory. Some people complained at one point
that a relative imageLocation is not working properly but in my case the
images are there.
Thanks
---------------------------------
Make Yahoo! Canada your Homepage Yahoo! Canada Homepage