myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zeeshan Ghalib" <>
Subject tree2 in panelGrid
Date Fri, 30 Dec 2005 18:54:05 GMT
Hello all,
I am having trouble displaying tree2 component in a panelGrid component.  It
works fine as a stand alone component on the screen.
I want to display some fields on the right side of the tree as the user
clicks on a leaf.  
After I put it inside a panelGrid component, the tree only shows the root
node and does not expand when I click on the plus image.
Following is my code:
<%@ taglib uri="" prefix="h"%>
<%@ taglib uri="" prefix="f"%>
<%@ taglib uri="" prefix="t"%>
<%@include file="inc/" %>
   <h:form id="foo123">
       <h:panelGrid columns="2">   
    <t:tree2 id="serverTree" value="#{productBrowser.treeData}" var="node"
varNodeToggler="t" clientSideToggle="false">
     <f:facet name="productsRoot">
       <t:graphicImage value="images/yellow-folder-open.png"
rendered="#{t.nodeExpanded}" border="0" />
       <t:graphicImage value="images/yellow-folder-closed.png"
rendered="#{!t.nodeExpanded}" border="0" />
       <h:outputText value="#{node.description}" styleClass="nodeFolder" />
       <h:outputText value=" (#{node.childCount})" styleClass="childCount"
rendered="#{!empty node.children}" />
     <f:facet name="product">
       <h:commandLink immediate="true" styleClass="#{t.nodeSelected ?
'documentSelected':'document'}" actionListener="#{t.setNodeSelected}">
        <t:graphicImage value="images/document.png" border="0" />
        <h:outputText value="#{node.description}" />
        <f:param name="docNum" value="#{node.identifier}" />
        <f:param name="productCode" value="#{node.productCode}" />
      <h:panelGrid columns="2">
     <h:outputText value="Product Code: " />
     <h:inputText value="#{productBean.productCode}" id="productCode"
     <h:outputText value="Description: " />
     <h:inputText value="#{productBean.description}" id="description"
Thanks in advance.

View raw message