Results 1 to 10 of 19

Thread: Table Column Sorting - dojox question

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    28

    Default Table Column Sorting - dojox question

    We are trying to have our tables be sortable. Can someone tell me how the dojo libraries are included in roo projects?

    It seems that it is being provided by the insight.war but I am having trouble trying to figure out how dojo is implemented to troubleshoot.

    When I deploy my roo application, how do I bundle it so that I can include the dojo dependencies with my war?

  2. #2
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    667

    Post

    Dojo is included as part of the Spring JavaScript JAR file, thanks to this POM entry:

    Code:
    <dependency>
        <groupId>org.springframework.webflow</groupId>
        <artifactId>org.springframework.js</artifactId>
        <version>2.0.8.RELEASE</version>
    </dependency>
    Crack open that JAR file; you'll find the Dojo stuff in META-INF/dojo and META-INF/dijit.

    In case you weren't aware, Roo apps can access JavaScript files and other resources located in JAR files thanks to the presence of an org.springframework.js.resource.ResourceServlet in your web.xml file.

    Is that what you were asking?

    P.S. I'd like to know how to make tables sortable too, so please do post back here once you find out.
    Andrew Swan
    "Now is the EJB of our discontent made glorious Spring"

  3. #3
    Join Date
    Feb 2011
    Posts
    2

    Default

    We are trying to get sortable tables into our Roo ap. Tried using the DojoX datagrid but couldn't get the table to show up. We tried adding:
    Code:
    dojo.require("dojo.parser");
    dojo.require("dojox.data.HtmlTableStore");
    dojo.require("dojox.grid.DataGrid");
    dojo.addOnLoad(function() {
      dojo.parser.parse();
    });
    so that we could add the dojox tags directly in. This allowed us to see the table but the dojox.data.HtmlTableStore wouldn't pull any data into the table.

    Wondering if anyone has gotten sortable tables working with Spring Roo? Are we going to need to add another Javascript framwork to get this functionality?

  4. #4

    Default

    Hello,
    we have the same problem.
    Does anybody some hint?

    thanks & best,
    Milan

  5. #5
    Join Date
    Jun 2010
    Posts
    440

    Default

    Guys,

    Does it have to be a dojo implementation?...
    Would you be happy with a non-dojo one. Cause I can come up with two implementations but not necessarily based on dojo. Totaly compatible with Roo ; of course



    B. Roogards
    jD

  6. #6
    Join Date
    Oct 2009
    Location
    Munich, Germany
    Posts
    103

    Default

    Go on delgad9 ;-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •