beehive/netui/test/webapps/drt/web/bugs/b41391/index.jsp

163 lines
6.2 KiB
Plaintext

<!--Generated by WebLogic Workshop-->
<%@ 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>Repeater Test</title>
</head>
<body>
<p>
<b>Repeater Test</b>
<br/>
<br/>
<netui-data:getData resultId="testMap" value="${pageFlow.testMap}"/>
<%
java.util.Map map = ((java.util.Map)pageContext.getAttribute("testMap"));
java.util.Iterator iterator = map.keySet().iterator();
while(iterator.hasNext())
{
String text = (String)iterator.next();
pageContext.setAttribute("text", text);
if(map.get(text) != null)
pageContext.setAttribute("array", map.get(text));
%>
<h1><netui:span value="${pageScope.text}"/></h1>
<br/>
<br/>
<b>Data Set</b>
<br/>
<br/>
<netui-data:repeater dataSource="pageScope.array">
<netui-data:repeaterHeader>
<ol>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<li><netui:span value="${container.item}" defaultValue="&nbsp;"/></li>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</ol>
</netui-data:repeaterFooter>
</netui-data:repeater>
<br/>
<b>ignoreNulls=false</b><br/>
<netui-data:repeater dataSource="pageScope.array">
<netui-data:repeaterHeader>
<table class="tablebody" border="1">
<tr><td>Start Table</td></tr>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr>
<td><netui:span value="${container.item}" defaultValue="&nbsp;"></netui:span></td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
<tr><td>End Table</td></tr>
</table>
</netui-data:repeaterFooter>
</netui-data:repeater>
<br/>
<b>ignoreNulls=true</b><br/>
<netui-data:repeater dataSource="pageScope.array" ignoreNulls="true">
<netui-data:repeaterHeader>
<table class="tablebody" border="1">
<tr><td>Start Table</td></tr>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr>
<td><netui:span value="${container.item}" defaultValue="&nbsp;"></netui:span></td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
<tr><td>End Table</td></tr>
</table>
</netui-data:repeaterFooter>
</netui-data:repeater>
<br/>
<b>ignoreNulls=false, padContext (min=10)</b><br/>
<netui-data:repeater dataSource="pageScope.array">
<netui-data:repeaterHeader>
<table class="tablebody" border="1">
<tr><td>Start Table</td></tr>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr>
<td><netui:span value="${container.item}" defaultValue="&nbsp;"></netui:span></td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
<tr><td>End Table</td></tr>
</table>
</netui-data:repeaterFooter>
<netui-data:pad minRepeat="10">
<tr><td><netui:span value="Pad text: ${container.index}"/></td></tr>
</netui-data:pad>
</netui-data:repeater>
<br/>
<b>ignoreNulls=true, padContext (min=10)</b><br/>
<netui-data:repeater dataSource="pageScope.array" ignoreNulls="true">
<netui-data:repeaterHeader>
<table class="tablebody" border="1">
<tr><td>Start Table</td></tr>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr>
<td><netui:span value="${container.item}" defaultValue="&nbsp;"></netui:span></td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
<tr><td>End Table</td></tr>
</table>
</netui-data:repeaterFooter>
<netui-data:pad minRepeat="10">
<tr><td><netui:span value="Pad text: ${container.index}"/></td></tr>
</netui-data:pad>
</netui-data:repeater>
<br/>
<b>ignoreNulls=false, padContext (max=1)</b><br/>
<netui-data:repeater dataSource="pageScope.array">
<netui-data:repeaterHeader>
<table class="tablebody" border="1">
<tr><td>Start Table</td></tr>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr>
<td><netui:span value="${container.item}" defaultValue="&nbsp;"></netui:span></td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
<tr><td>End Table</td></tr>
</table>
</netui-data:repeaterFooter>
<netui-data:pad maxRepeat="1">
<tr><td><netui:span value="Pad text: ${container.index}"/></td></tr>
</netui-data:pad>
</netui-data:repeater>
<b>ignoreNulls=true, padContext (max=1)</b><br/>
<netui-data:repeater dataSource="pageScope.array" ignoreNulls="true">
<netui-data:repeaterHeader>
<table class="tablebody" border="1">
<tr><td>Start Table</td></tr>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr>
<td><netui:span value="${container.item}" defaultValue="&nbsp;"></netui:span></td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
<tr><td>End Table</td></tr>
</table>
</netui-data:repeaterFooter>
<netui-data:pad maxRepeat="1">
<tr><td><netui:span value="Pad text: ${container.index}"/></td></tr>
</netui-data:pad>
</netui-data:repeater>
<hr/>
<%
}
%>
</body>
</netui:html>