Can anyone tell me why I cant make the nested table example work ?
Here is my jsp :
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="urn:jsptld:http://java.sun.com/jsp/jstl/core"
xmlns:display="urn:jsptld:http://displaytag.sf.net/el">
<jsp:directive.page import="java.util.*" />
<jsp:declaration>
class A {
String id = "0";
public String toString() {
return id;
}
public A(String id) {
this.id = id;
}
};
</jsp:declaration>
<jsp:scriptlet>
ArrayList parentList = new ArrayList();
request.setAttribute( "test", parentList );
parentList.add(Arrays.asList(new A[] {new A("a"), new A("b"),
new A("c")}));
parentList.add(Arrays.asList(new A[] {new A("1"), new A("2"),
new A("3")}));
</jsp:scriptlet>
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<title>Cadeau-Parfait :: Statistiques</title>
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1" />
<style media="all" type="text/css">
@import url("css/site.css");
@import url("css/screen.css");
</style>
</head>
<body style="margin: 10px 10px 10px 10px">
<display:table name="test" id="row">
<display:column title="Number" value="${row_rowNum}"/>
<c:set var="innerTable" value="test[${row_rowNum-1}]" />
<display:column title="Data1" value="${row}" />
<display:column title="Data2" value="${innerTable}" />
<display:column title="Data3">
<display:table name="${innerTable}" id="child${row_rowNum}"
class="simple sublist">
<display:column property="id"/>
</display:table>
</display:column>
</display:table>
</body>
</html>
</jsp:root>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user