<%@ page language="java" contentType="text/html;charset=UTF-8"%> <%@ taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%> <%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%> <%@ taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%> treeSC3.jsp

HometreeSC4.jsp [goTreeSC4.do]

CreationStatic
tree{pageFlow.tree34 and 35}
runAtClienttrue
actionpostback

Tree Postback Information

Expand:
Selection:
This demonstrates two tree within the same tree. Both trees have the same name, so they require a parent ScriptContainer with generateIdScope = "true" so their tagId will become unique. JavaScript at the end finds both the tree generated div and and item div.
0 0.0 0.1 0.1.0 0.1.1 0.2 0 0.0 0.1 0.1.0 0.1.1 0.2

var p = document.getElementById("javaOut"); var s1 = document.getElementById("scopeOneSpan"); var s2 = document.getElementById("scopeTwoSpan"); var val = "Document Access
"; val = val + "Tree One is null: " + (document.getElementById(lookupIdByTagId("tree",s1)) == null) + "
"; val = val + "Item One is null: " + (document.getElementById(lookupIdByTagId("item00",s1)) == null) + "
"; val = val + "Tree Two is null: " + (document.getElementById(lookupIdByTagId("tree",s2)) == null) + "
"; val = val + "Item Two is null: " + (document.getElementById(lookupIdByTagId("item00",s2)) == null) + "
"; p.innerHTML = val;