Heres how I got the dynamic tables working with Display Tag and Struts2
I pass in the list of columnNames and chartDATA from the controller
and heres my jsp

Struts 2.0.11.2
DisplayTag 1.1.1
ajaxtags 1.3 rc7

<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://displaytag.sf.net"; prefix="display" %>
<%@ taglib uri="http://ajaxtags.org/tags/ajax"; prefix="ajax" %>

<div class="table">

<form id="reportdataform" method="POST">

<ajax:displayTag id="chartDATA" ajaxFlag="chartDATA">
<display:table name="chartDATA" uid="chartRow" id="chartRow" pagesize="25"
excludedParams="*" export="true" class="table"
requestURI="/Dashboard/ViewReportData.action">  
<s:iterator value="columnNames" id="column" status="stat2">
<display:column title="${column}"><s:property
value="#attr.chartDATA[#attr.chartRow_rowNum -1][#stat2.count-1]" />
</display:column>               
</s:iterator>
</display:table>        
</ajax:displayTag>
</form>

</div>

Hopefully it will help someone.. 
-- 
View this message in context: 
http://www.nabble.com/Struts2-DisplayTag-dynamic-table-tp19681086p19681086.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to