Last updated by jvmvik 10 months ago
Guide : Getting Started
1- $grails install-plugin smartgwt
2- Eclipse : Add SmartGWT to your build path project.
In project explorer, go in lib/smartgwt*.jar
- Right click then add to build path.
for more details: got
3- A default controller, view is generated.
Check if GWT plugin is properly installed :
4- Try to compile :
$grails compile-gwt-modules
> Nothing will be done because no module have been created.
5- Development mode :
$ grails run-app
Just after runs :
$grails run-gwt-client
Commands usage
$grails create-smartgwt-application com.package.application widgetname
- This target creates a default module which contains com.package as package. The module contains one root class called Application. This class extends to EntryPoint.
- Additionnaly a new GSP page containing a SmartGWT/GWT UI will be created.
note: The application name and the widget name must be lower case ! (GWT convention)
$grails create-smartgwt-module com.package.Module1
- Creates a new SmartGWT module without GSP. User have to manually bind the module in they're application.
Last updated by jvmvik 10 months ago
SmartGWT support for Grails.
This plugin provides an easy way to start developing with GWT, Grails and SmartGWT.
This plug-in enhances SmartGWT support for Grails 1.3*. By providing, usefull commands to generates sample of Application.
Smart GWT is a GWT-based framework that allows you to not only utilize its comprehensive widget library for your application UI, but also tie these widgets in with your server-side for data management.
For a quick conceptual overview of Smart GWT : http://code.google.com/p/smartgwt/
The main idea of smartgwt is to introduce an object called datasource.
This object can be feed by the client as JSON, XML, etc..
On datasource is easy to integrate and debug from your grails application because grails provides really good converter (XML, JSON).
So, your controllers are responsible to build output content ready to be parsed as XML or JSON.
Future development of SmartGWT will turn into this direction..
This plugin provides an easy way to start developing with GWT, Grails and SmartGWT.
This plug-in enhances SmartGWT support for Grails 1.3*. By providing, usefull commands to generates sample of Application.
Smart GWT is a GWT-based framework that allows you to not only utilize its comprehensive widget library for your application UI, but also tie these widgets in with your server-side for data management.
For a quick conceptual overview of Smart GWT : http://code.google.com/p/smartgwt/
The main idea of smartgwt is to introduce an object called datasource.
This object can be feed by the client as JSON, XML, etc..
On datasource is easy to integrate and debug from your grails application because grails provides really good converter (XML, JSON).
So, your controllers are responsible to build output content ready to be parsed as XML or JSON.
Future development of SmartGWT will turn into this direction..
Features
- Create a basic smartgwt application from one command line.
- Creating additional smartgwt module
ROADMAP
- version 0.4
- Proposal for simple DataSource object for REST / XML
- Add CRUD controller template
- READ : DynamicForm
- EDITOR : DynamicForm
- LIST : ListGrid Rest
- Large grid template
- version 0.5
- Add large grid example.
- Improve server side with more sophisticated controller.
- version 0.3
- Add large grid example
- Provide JSON support
Dependencies
- Grails 1.3.2+ and GWT plugin 0.5.2
- GWT 2.1
- SmartGWT 2.4
Contact
Blog: http://unhook.eu
Contact: Victor Benarbia
Email: jvmvik@gmail.com
Follow me on twitter: jvmvik
Last updated by jvmvik 10 months ago
How to get support ?
http://jira.codehaus.org/browse/GRAILSPLUGINS/component/14468
From mailing lists : http://www.grails.org/Mailing+lists
Direct email: jvmvik@gmail.com
Twitter : jvmvik
How to report a bug ?
http://jira.codehaus.org/browse/GRAILSPLUGINS/component/14468Root of this plugin ?
This article is directly related to http://www.cacoethes.co.uk/blog/groovyandgrails/introducing-smartgwt-to-grails
Eclipse Environment Setup Instructions
- Don't forget to add SmartGWT library to your buildpath !
- SmartGWT
- Select smartgwt-skins.jar, smartgwt.jar dependencies in lib/gwt/
- Rigth click then Build Path > Add to Build Path
- Additional configuration :
- You must add a specific dependency to GWT library.
- You can create a new user library then the $GWT_HOME/lib/gwt-user.jar
Eclipse Environment Setup Instructions
This introduction is relative to GWT setup.
- Don't forget to add GWT and SmartGWT library to your buildpath !
- GWT
- Project>Properties>Java Build Path>Add jar
- Select gwt-user.jar in GWT_HOME directory
- SmartGWT
- Select SmartGWT dependencies in lib/gwt/
- Rigth click then Build Path > Add to buildpath
Advice: You can create a new user library which contains GWT and SmartGWT jar files.
Last updated by admin 1 year ago