beehive/netui/test/webapps/drt/web/tree/treeAttribute/attribute6.jsp

55 lines
3.1 KiB
Plaintext

<%@ 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"%>
<netui:html>
<head>
<title>attribute6.jsp</title>
<link href="style.css" rel="stylesheet" type="text/css">
<netui:base/>
</head>
<netui:body>
<h4 class="title"><netui:anchor action="begin" styleClass="homeAnchor">Home</netui:anchor>attribute6.jsp [goAttribute6.do/tree6] </h4>
<hr style="clear:left">
<p>
This test has multiple attributes that are applied to there descendents and are overridden
below their definitions. In this case A is on the root, -A- is on the next level down and
*A* is the next level down. The attribute is applied to the Label Anchor and should match
the label value. You must view source to confirm the attributes.
</p>
<div class="content">
<netui:tree dataSource="pageFlow.tree6" selectionAction="postback" tagId="tree">
<netui:treeItem expanded="true">
<netui:treeLabel>0 [A]</netui:treeLabel>
<netui:treeHtmlAttribute attribute="a" value="A" onSelectionLink="true" applyToDescendents="true" />
<netui:treeItem expanded="true">
<netui:treeLabel>0.0 [-A-]</netui:treeLabel>
<netui:treeHtmlAttribute attribute="a" value="-A-" onSelectionLink="true" applyToDescendents="true"/>
<netui:treeItem expanded="true">
<netui:treeLabel>0.0.0 [*A*]</netui:treeLabel>
<netui:treeHtmlAttribute attribute="a" value="*A*" onSelectionLink="true" applyToDescendents="true"/>
<netui:treeItem><netui:treeLabel>0.0.0.0 [*A*]</netui:treeLabel></netui:treeItem>
<netui:treeItem><netui:treeLabel>0.0.0.1 [*A*]</netui:treeLabel></netui:treeItem>
<netui:treeItem><netui:treeLabel>0.0.0.2 [*A*]</netui:treeLabel></netui:treeItem>
</netui:treeItem>
<netui:treeItem expanded="true">
<netui:treeLabel>0.0.1 [-A-]</netui:treeLabel>
<netui:treeItem><netui:treeLabel>0.0.1.0 [-A-]</netui:treeLabel></netui:treeItem>
<netui:treeItem><netui:treeLabel>0.0.1.1 [-A-]</netui:treeLabel></netui:treeItem>
<netui:treeItem><netui:treeLabel>0.0.1.2 [-A-]</netui:treeLabel></netui:treeItem>
</netui:treeItem>
</netui:treeItem>
<netui:treeItem expanded="true">
<netui:treeLabel>0.1 [A]</netui:treeLabel>
<netui:treeItem>0.1.0 [A]</netui:treeItem>
<netui:treeItem>0.1.1 [A]</netui:treeItem>
</netui:treeItem>
</netui:treeItem>
</netui:tree>
</div>
</netui:body>
</netui:html>