ZKGrails: ZK plugin for Grails
This project is originated by Flyisland and now being maintained here. Current milestone release is ZKGrails is 1.0-M1, which supports ZK 5.0-RC and Grails 1.2-M3. This is the first release under LGPL.
- Milestone release: http://zkgrails.googlecode.com/files/grails-zk-1.0-M1.zip
- Last stable: http://zkgrails.googlecode.com/files/grails-zk-0.7.4.zip (for Grails 1.1.1, using ZK 3.6.2)
Install from ZKGrails repository
Put the following lines into your application's grails-app/conf/BuildConfig.groovy:
grails.plugin.repos.discovery.zkgrails="http://zkgrails.googlecode.com/svn/plugins" grails.plugin.repos.resolveOrder=['zkgrails','default','core']
Then type $ grails install-plugin zk.
(You can also have a setting of ZKGrails repository in $USER_HOME/.grails/settings.groovy)
Install
Type $ grails install-plugin zk to install from the main Grails repository.
or $ grails install-plugin http://zkgrails.googlecode.com/files/grails-zk-1.0-M1.zip
Quick Start
Type $ grails create-zul index will give you
- web-app/index.zul linked with ${indexComposer}
- grails-app/composers/IndexComposer.groovy, the composer class.
Then $ grails run-app, and point your browser to http://localhost:8080/<your app>/index.zul.
As of version 0.7, auto reloading is fully supported.
To create only a composer, you can type $ grails create-composer <name>.
If you are going to create zul files manually, please use this template for your .zul files. AnnotateDataBinderInit is for data-binding support. DelegatingVariableResolver is for injecting Spring beans, and GroovyGrails is for making Grails classes work for you.
<?xml version="1.0" encoding="UTF-8"?> <?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?> <?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?> <?page zscriptLanguage="GroovyGrails"?>
News
- 23-Oct-2009 ZKGrails releases 1.0-M1. The license of this release is changed to LGPL.
- 19-Oct-2009 ZKGrails starts the official Github repository.
- 29-Aug-2009 ZKGrails has its own plugin repository.
- 29-Jun-2009 ZKGrails 0.7.4 has been released. This version includes ZK 3.6.2.
- 7-Jun-2009 The official blog of ZKGrails is now online at http://zkgrails.blogspot.com
- 3-Jun-2009 ZKGrails 0.7.3 has been released !
- 29-May-2009 ZKGrails 0.7.2 has been released !
- 5-May-2009 ZK has been released its 3.6.1. Currently, ZKGrails awaits the release of Grails 1.1.1, which expects to be coming out soon.
- 22-Mar-2009 ZKGrails 0.7.1 has been released !
- 18-Mar-2009 ZKGrails 0.7 has been released !
- 11-Mar-2009 ZKGrails 0.6.1 has been released ! Grails 1.1 just came out yesterday. Congrats to the team ! And this is ZKGrails 0.6.1 for Grails 1.1.
- 10-Mar-2009 New snapshot for ZKGrails 0.6.1 has been released for testing. This snapshot fixed all bugs reported in 0.6.1 Milestone.
- 8-Mar-2009 I decided to skip ZK 3.5.2 since 3.6.0 has been released recently. Now, ZK-Grails 0.6.1-RC1, featuring ZK 3.6.0 and for Grails 1.1-RC2 has been released.
- 24-Dec-2008 ZKGrails 0.6.1, featuring ZK 3.5.2 and for Grails 1.0.4, is now being tested. I hope to get it released soon.
- 14-Nov-2008 ZKGrails User Group is now online.
- 23-Oct-2008 ZK 3.5.1 has been released for a while, but I found a bug that expanding grid's columns when clicking on its headers. So I may be waiting for 3.5.2. But if you really want the plugin with 3.5.1, please drop me a line.
- 29-Sep-2008 ZK 3.5.1-FL is released for testing. Please give it a try. Next version of ZKGrails (0.6.1) is to support ZK 3.5.1.
- 13-Sep-2008 ZKGrails 0.6 is released ! ZK 3.5 has come out recently, and now you can experience its new set of features in the current version of ZKGrails.
- 31-Aug-2008 ZK 3.5.0-FL has been released for testing. ZKGrails will be updated towards ZK 3.5.0 as well.
- 19-Aug-2008 ZK Plugin for Grails version 0.5 has been released.
Support
You can use the mailing list here for both support and development discussion.