Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 221673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:03:20+00:00 2026-05-11T19:03:20+00:00

Has anyone built a grails app using extjs as the frontend? Are there any

  • 0

Has anyone built a grails app using extjs as the frontend?

Are there any pitfalls or gotchas that you’d care to share?

It looks like the JSON format output by grails by default it quite different from what extjs expects, but is it just a matter of customising the JSON on the grails side?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:03:20+00:00Added an answer on May 11, 2026 at 7:03 pm

    I’m using the combination Grails + ExtJS a lot and it’s quite easy to implement. The JSON Output for grids can be easily achieved by doing something like this in your controllers:

    def list = {
       def books = Book.list(params)    
       render( [ items: books, totalCount: Book.count() ] as JSON )
    }
    

    this will produce “Ext-compatible” JSON like:

    {"items":[{"class":"Book","id":1,"title:"The Definitive Guide to Grails","author":"Graeme Rocher",...
    

    this is an example on how you should initialize the JsonStore:

    var store = new Ext.data.JsonStore({
       url: '${createLink( action: 'list' )}',
       root: 'items',
       totalProperty: 'totalCount',
       fields: [ 'id','title','author','isdn', 'dateCreated' ],
       paramNames: { start : "offset", limit :"max", sort : "sort", dir : "order" }
    });
    

    When dealing with Date values, it is IMO the best practice to enable the Javascript Date format for the JSON Converter (ie. date values will be rendered as new Date(123123123) instead of the default format “2009-04-16T00:00:00Z”), so you don’t have to care about date format or timezone stuff. You can do this by configuring it in your grails-app/conf/Config.groovy:

    grails.converters.json.date = 'javascript'
    

    I’ve also implemented the server-side functionality for the grid filter plugin, various combinations of combo box implementations (with remote auto-completion), trees, forms etc. If you want to see more example code for that, let me know.

    ExtJS 3.0 (currently RC) integrates even better with Grails, as the DataStores provides the option to send data back to the backend to get persisted. The Ext.Direct approach provides new possibilities as well 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 112k
  • Answers 112k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It isn't performing two allocations, it is creating an object… May 11, 2026 at 9:57 pm
  • Editorial Team
    Editorial Team added an answer Well, what data type are you expecting to get back?… May 11, 2026 at 9:57 pm
  • Editorial Team
    Editorial Team added an answer rifferte is correct in that it's safest to install in… May 11, 2026 at 9:57 pm

Related Questions

GWT seems like a really nice technology for Java developers who don't like (or
Has anyone built a website with IronPython and ASP.NET. What were your experiences and
I'm planning a WPF application which will be able to create dynamic data entry
Is there a .NET Control Similar to the Access 2007 Split Form? Or has
My initial look at Jersey suggested this was a nice framework that made it

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.