J'utilise spring-roo en essayant d'utiliser dojox.grid.DataGrid. La page s'affiche comme un simple tableau. Pourquoi n'utilise-t-elle pas DataGrid ? Je vous remercie. Steve
<div xmlns:spring="http://www.springframework.org/tags"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"><jsp:output
omit-xml-declaration="yes" /> <script type="text/javascript">
dojo.require("dijit.TitlePane");
</script> <script type="text/javascript"
src="<c:url value="/resources/dojo/dojo.js" />">
</script> <script type="text/javascript"
src="<c:url value="/resources/spring/Spring.js" />">
</script> <script type="text/javascript"
src="<c:url value="/resources/spring/Spring-Dojo.js" />">
</script> <script type="text/javascript">
dojo.require("dojox.grid.DataGrid");
dojo.require("dojox.data.CsvStore");
</script>
<div id="_title"><spring:message var="app_name"
code="application.name" /> <spring:message var="title"
code="welcome.titlepane" arguments="${app_name}" /> <script
type="text/javascript">
Spring.addDecoration(new Spring.ElementDecoration( {
elementId : '_title',
widgetType : 'dijit.TitlePane',
widgetAttrs : {
title : '${title}'
}
}));
</script>
<h4>Title</h4>
<table dojoType="dojox.grid.DataGrid">
<thead>
<tr>
<th field="fieldName" width="200px">Column Name</th>
<th field="fieldName" width="200px">Column Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>test1</td>
<td>test2</td>
</tr>
<tr>
<td>test3</td>
<td>test4</td>
</tr>
</tbody>
</table>
</div>
</div>