I am trying the code on the wiki page and this is how my jsp looks
When I debug the actionlistener, it finds the identifier of the main node and then adds the new nodes.
It however, does not display the nodes.
What am I missing here? Can some one please help?
- Anu


<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<!--
/*
 * Copyright 2005 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
//-->
<html>

<[EMAIL PROTECTED] file="/inc/head.inc" %>

<body>

<f:view>

    <!-- Expand/Collapse Handled By Client -->

    <%--
    NOTE: There is no commandLink for the folders because the toggling of expand/collapse is handled on the client
    via _javascript_.  We have a command link for document but that is really application specific.  In a real application
    you would likely specify an action method/listener and do something interesting with the node identifier that is
    submitted.

    First child in the expand/collapse facet should be image (if any)
    --%>
    <span style="font-family:verdana">
        <b>Tree2 w/client-side (default) toggle</b><br/>
    </span>
    <br/>
<h:form id="foo">

 

    <br/>
    <span style="font-family:verdana">
        <b>Tree2 w/server-side toggle</b><br/>
    </span>
    <br/>
   
    <!-- Expand/Collapse Handled By Server -->
    <t:tree2 id="serverTree" value="#{treeBacker.treeData}" var="node"
    varNodeToggler="t" clientSideToggle="false" showNav="false"
    showRootNode="true">
        <f:facet name="person1">
           <h:panelGroup>
                <h:commandLink action="" actionListener="#{treeBacker.processAction}">
                    <t:graphicImage value="/images/document.png" border="0"/>
                    <h:outputText value="#{node.description}"/>
                    <f:param name="taxId" value="#{node.identifier}"/>
                </h:commandLink>
            </h:panelGroup>
        </f:facet>
       
           
    </t:tree2>
</h:form>
</f:view>

<[EMAIL PROTECTED] file="/inc/page_footer.jsp" %>

</body>

</html>

Reply via email to