Announcement Announcement Module
Collapse
No announcement yet.
dojox.grid.DataGrid not rendered Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • dojox.grid.DataGrid not rendered

    Hello,
    I'm using spring-roo trying to use dojox.grid.DataGrid. The page renders as a plain table. Why does it not use the DataGrid?
    Thanks!
    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="&lt;c:url value=&quot;/resources/dojo/dojo.js&quot; /&gt;">

    </script> <script type="text/javascript"
    src="&lt;c:url value=&quot;/resources/spring/Spring.js&quot; /&gt;">

    </script> <script type="text/javascript"
    src="&lt;c:url value=&quot;/resources/spring/Spring-Dojo.js&quot; /&gt;">

    </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>

  • #2
    Hi, were you ever able to find a solution to your problem? Mine is still not working even after following the answer from the same post you posted in stackoverflow.com

    Comment

    Working...
    X