You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by sri <sm...@gmail.com> on 2005/12/07 18:57:12 UTC
tree2 and the icons
Hi
I am trying to use the folder icons for the tree2 component.
My tree is defined as below...
<x:tree2 id="queryTree"
javascriptLocation="/common/tree2"
value="#{scheduleManagerFace.queryTree}"
var="node" varNodeToggler="t">
<f:facet name="Root">
<h:panelGroup>
<f:facet name="expand">
<x:graphicImage
value="../../images/tree2/open.gif" rendered="#{t.nodeExpanded}"
border="0"/>
</f:facet>
<f:facet name="collapse">
<x:graphicImage
value="../../images/tree2/folder.gif" rendered="#{t.nodeExpanded}"
border="0"/>
</f:facet>
<h:outputText value="#{node.description}"
styleClass="nodeFolder"/>
</h:panelGroup>
</f:facet>
....
....
....
</x:tree2>
The images are not shown correctly... when looked at the source I see the
following for tree image tag...
<img id="frmScheduleEditor:queryTree:0:t2"
src="/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-
plus-line-last.gif" border="0" height="18" width="19"
onclick="treeNavClick('org.apache.myfaces.tree.TOGGLE_SPAN:queryTree:0',
'frmScheduleEditor:queryTree:0:t2',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-
plus-line-last.gif',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-
minus-line-last.gif', '', '../../images/tree2/open.gif',
'../../images/tree2/folder.gif', 'queryTree', '0');"
style="cursor:hand;cursor:pointer" />
I have also tried to set the imageLocation for the tree2 tag, then I am
seeing the default + and - icons for the tree. I have looked at the
tree2.jsp in the examples area and followed the same but is not working. I
have verified my icons and they exist in ../../images/tree2 folder.
Am I doing something wrong here?
Thanks In Advance
Srikanth