0 Replies Latest reply on Sep 17, 2007 5:56 AM by Amin Abu-Taleb

    rich:tree & Struts 2?

    Amin Abu-Taleb Newbie

      Hi guys!, does anyone knows how to use rich:tree in Struts 2?
      I tried to use that:

       <h:form>
       <div style="float:left;width:300px">
       <rich:panel>
       <f:facet name="header">
       <div class="rich-panel-header ">
       Arbol JSF + Ajax
       </div>
       </f:facet>
       <rich:tree switchType="ajax" style="width:300px" value="#{action.data}" var="item" nodeFace="#{item.type}">
       <rich:treeNode type="root" ajaxSubmitSelection="true">
       <h:outputText value="#{item.type}" />
       </rich:treeNode>
       <rich:treeNode type="folder" ajaxSubmitSelection="true">
       <h:outputText value="#{item.name}" />
       </rich:treeNode>
       <rich:treeNode type="document" ajaxSubmitSelection="true">
       <h:outputText value="#{item.name}" />
       </rich:treeNode>
       </rich:tree>
       </rich:panel>
       </div>
       </h:form>
      


      But it only shows folder names, neither icons nor expand/collapse signs.
      And when i try to expand a folder, it doesn't do anything.

      Any idea?

      Thnx