on 2004 Sep 13 10:01 AM
I want to dynamically create tree with HTBLB tree tag. I create simple example:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="tagLib" prefix="hbj" %><hbj:content id="myContext" >
<hbj:page title="Test tree">
<hbj:form id="myFormId">
<hbj:tree id="S_Tree"
tooltip="Test tree"
>
<%
for (int i = 0; i < 10; i++)
{
System.out.println(i);
%>
<hbj:treeNode
id="eee<%= i %>"
text="Test <%= i %>!">
<hbj:treeNode
id="ddd<%= i %>"
text="Test <%= i %>!">
</hbj:treeNode>
</hbj:treeNode>
<% }
%>
</hbj:tree>
</hbj:form>
</hbj:page>
</hbj:content>
In result I have only one root node. Cycle is ignored by tree tag! It means that tree tag can not be used on dynamic JSP pages? It is very poorly...
It means that I should create this tree manually But I can't reconstruct portal style exactly...
Message was edited by: Eugeny Balakhonov
Thanks!
But I have new problem. I want to catch click events on tree nodes in single method. I tries to add code like
node.setOnNodeClick("onSelectNode");
for each node in my tree
But I can't receive node id in onSelectNode routine:
public void onSelectNode(Event event)
{
...
}
Event object hasn't any information about which node was selected and tree object hasn't information too.
I can't find any information in HTMLB documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.