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

Echo2 Plugin

  • Tags: rich client, ajax
  • Latest: 0.1
  • Last Updated: 21 November 2007
  • Grails version: *
  • Authors: null
0 vote
compile "org.grails.plugins:echo2:0.1"




Echo2 Plugin



This plugin adds Echo2 capability to a grails application. See for Echo2 examples.


Current plugin version: 0.1 ^

Libraries included:

  • Echo2_App.jar
  • Echo2_WebRender.jar
  • Echo2_WebContainer.jar
  • Echo2_Chart_App.jar: echo2 charting components
  • Echo2_Chart_WebContainer.jar: plumbing required for charting components
  • Echo2_Extras_App.jar: echo2 extras components
  • Echo2_Extras_WebContainer.jar: plumbing required for extras components
  • Echo2_FileTransfer_App.jar: file transfer components
  • Echo2_FileTransfer_WebContainer.jar: plumbing required for file transfer components
  • echopointng-2.1.0rc5.jar: EchoPointNG
  • jcommon-1.0.0.jar
  • jfreechart-1.0.0.jar

Command options list ^

|| option || description || usage || | create-echo2 | creates an Echo2 application instance class in grails-app/echo2 | grails create-echo2 <name> |


Installation ^

Download site:

If you use a command of 'grails install-plugin echo2', you don't need to download at all. This command will download a latest release zip file automatically from


How to use Echo2 plugin ^

  1. Create an ApplicationInstance
> grails create-echo2 Hello
  1. Then edit such as follows:
/*** testapp/grails-app/echo2/HelloApplicationInstance.groovy ***/

import*; import;

class HelloApplicationInstance extends ApplicationInstance { public Window init() { Window window = new Window(); window.setTitle("HelloApplicationInstance");

ContentPane contentPane = new ContentPane(); window.setContent(contentPane);

contentPane.add(new Label("HelloApplicationInstance"));

return window; } }


  1. Start a web application
> grails run-app
  1. Access http://localhost:8080/testapp/hello.echo2 to watch an example app

Known Issues ^

Groovy objects trying to override final methods from or

Due to a bug (see in groovy system it's not possible to a groovy class to extend any class that extends because defines a public final Object getProperty(String name) method.


Q&A ^

  • Isn't it needed to create a servlet that extends nextapp.echo2.webcontainer.WebContainerServlet?
No. The plugin automatically adds a new org.codehaus.groovy.grails.plugins.echo2.GrailsWebContainerServlet for each ApplicationInstancfound


Further developments ^

  • Echo2Builder: a clone of groovy SwingBuilder for Echo2 components
  • Scaffolding
  • suggestions accepted

Plugin version history^

  • Nov 22nd, 2007
    • first version, tested on grails.1.0-rc1