Plugins You can find out about all the publicly available Grails plugins.

JQuery EasyUI from Grails

  • Tags: jquery
  • Latest: 1.7
  • Last Updated: 08 April 2014
  • Grails version: 2.0 > *
  • Authors: Leandro Gehlen
0 vote
compile "org.grails.plugins:easyui:1.7"

 Documentation  Source  Issues


Supplies jQuery EasyUI resources and taglibs. Depends on jQuery EasyUI plugin. See


grails install-plugin easyui


Grails EasyUI Plugin helps you to develop rich applications using the jQuery JavaScript library EasyUI framework.

The plugin implements taglibs for writing the compontentes in gsp, plus the scripts to generate scaffold to produce CRUD quick and powerful.

Another feature created is EasyuiDomainClassMarshaller that simplifies the rendering of domain objects to JSON-compatible components JQuery EasyUI.

Including the resources

You must use the Grails resources framework to make use of this plugin.

Download, extract content in webapp/js/jquery-easyui

jquery-easyui - jQuery EasyUI framework (version 1.3.2)


The following settings are available

// available "en", "pt_BR" 
grails.plugin.easyui.locale = 'en'
//folder name found in "jquery-easyui/themes"
grails.plugin.easyui.theme = 'black'
//version defined in the file "jquery-1.8.0.min.js" found in "jquery-easyui"
grails.plugin.easyui.jquery.version = '1.8.0'


<r:require modules="easyui_core"/>
<r:layoutResources />

Hello World!

    <title>Hello World Demo</title>
    <r:require module="easyui_core"/>    			
    <r:layoutResources />
  <e:window title="My Window" width="300px" height="100px">
    Some Content.


We can generate scaffold with commands:
grails easyui-generate-controller [domainClass]
grails easyui-generate-view [domainClass]
grails easyui-generate-all [domainClass]
grails easyui-install-templates

Registering DomainClassMarshaller

To integrate the data with the components you need to register the domain class renderer. To register this class it is necessary to change the file BootStrap.groovy as follows:

import grails.converters.JSON
import org.codehaus.groovy.grails.commons.GrailsApplication
import org.grails.plugins.easyui.EasyuiDomainClassMarshaller
class BootStrap {
    GrailsApplication grailsApplication
    def init = { servletContext ->    	 
        JSON.registerObjectMarshaller(new EasyuiDomainClassMarshaller(true, grailsApplication))