struts2和dojo集成让人头疼的有关问题,求教各位
1个回答
2016-01-20
展开全部
页面代码如下
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<html>
<head>
<title>Showcase - UI Tag Example - Tree Example (Static)</title>
<sx:head/>
</head>
<body>
<div style="float:left; margin-right: 50px;">
<sx:tree label="parent" templateCssPath="/struts/tree.css"
showRootGrid="true" showGrid="true" treeSelectedTopic="treeSelected">
<sx:treenode label="child1" >
<sx:treenode label="grandchild1" id="grandchild1Id"/>
<sx:treenode label="grandchild2" id="grandchild2Id"/>
<sx:treenode label="grandchild3" id="grandchild3Id"/>
</sx:treenode>
<sx:treenode label="child2" id="child2Id"/>
<sx:treenode label="child3" id="child3Id"/>
<sx:treenode label="child4" id="child4Id"/>
<sx:treenode label="child5" id="child5Id">
<sx:treenode label="gChild1" id="gChild1Id"/>
<sx:treenode label="gChild2" id="gChild2Id"/>
</sx:treenode>
</sx:tree>
</div>
</body>
</html>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<html>
<head>
<title>Showcase - UI Tag Example - Tree Example (Static)</title>
<sx:head/>
</head>
<body>
<div style="float:left; margin-right: 50px;">
<sx:tree label="parent" templateCssPath="/struts/tree.css"
showRootGrid="true" showGrid="true" treeSelectedTopic="treeSelected">
<sx:treenode label="child1" >
<sx:treenode label="grandchild1" id="grandchild1Id"/>
<sx:treenode label="grandchild2" id="grandchild2Id"/>
<sx:treenode label="grandchild3" id="grandchild3Id"/>
</sx:treenode>
<sx:treenode label="child2" id="child2Id"/>
<sx:treenode label="child3" id="child3Id"/>
<sx:treenode label="child4" id="child4Id"/>
<sx:treenode label="child5" id="child5Id">
<sx:treenode label="gChild1" id="gChild1Id"/>
<sx:treenode label="gChild2" id="gChild2Id"/>
</sx:treenode>
</sx:tree>
</div>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询