Hi

  I am trying to use the folder icons for the tree2 component.

My tree is defined as below...

                  <x:tree2 id="queryTree"
                            _javascript_Location="/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="" border="0" height="18" width="19" '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

Reply via email to