Hello all,

I want to build dynamiclly a tree of nodes inside a xsp. I have tried 
something like this:


<tree id="navtree">
        <treeitem text="ExampleNode" />
        <xsp:logic>
                insertNode(anObject);
        </xsp:logic>

</tree>

<xsp:logic> 
        private void insertNode(Object obj){
</xsp:logic>
                <treeitem>
                        <xsp:attribute name="text">text of Object </xsp:attribute>
                </treeitem>
                
<xsp:logic>
                // insert all children          
                for (int i= 0;i < obj.children.length; i++){
                        insertNode(obj.children[i];             
                }
        }
</xsp:logic>


But this doesn't work. Is there an Workaround possible?

Thanks,
Marc



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to