My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages

ZK addon for Spring ROO

The ZK addon for Spring ROO enables rapid RIA development using plain Java, ZK, Spring and Hibernate/JPA with Spring ROO. The build script is simply a Maven's POM file. Spring ROO makes you develop your Java applications faster and the most important aspect is that you are in-control of everything in the app.

This ZK addon helps you setup a ZK project quickly. It automatically scans .ZUL files and injects id-based ZK components into the associated ZK Composer every time you change the .ZUL files.

Would like to try this similar functionality for the Grails framework? Try ZKGrails.

Getting Started

If you have an older version of the addon installed, please remove it first:

osgi uninstall --bundleSymbolicName org.zkoss.zk.roo.addon

Then, try these commands in the Spring ROO shell step-by-step.

osgi start --url http://zk-roo.googlecode.com/files/org.zkoss.zk.roo.addon-1.0.0.M3.jar
project --topLevelPackage org.my.project
persistence setup --provider HIBERNATE --database H2_IN_MEMORY
entity jpa --class ~.entity.MyData
field string --fieldName name
web zk setup
//
// Please use: composer --class ~.web.IndexComposer --zul index.zul
// for the current snapshot build.
//
composer --name ~.web.IndexComposer --zul index.zul

//
// open index.zul file and add <button id="btnOK">OK</button> here.
//
listen to --event onClick --selector button#btnOK --methodName btnOKClicked

Commands

  • web zk setup - Add ZK supports to your Java project.
  • composer - Create a ZK composer, make it a Spring Bean and associate it with a ZUL file.
  • listen to - Create an event handler. This command requires you to specify CSS3 selector and check if the selector is valid in your associated ZUL, providing pluggable type safety for event handlers.

News

  • 27 Feb 2012. ZK addon for Spring ROO 1.0.0.M3 is available. This version requires Roo 1.2.1.
  • 28 Jan 2012. ZK addon for Spring ROO 1.0.0.M2 is now available to download.
  • 16 Jan 2012. The first milestone release of the ZK addon for Spring ROO is now available.
Powered by Google Project Hosting