Tutorial: Reading from the DB with Netbeans and ZK

21 03 2009

After the first very basic tutorial that gets you started with the required plugins and settings (link), I will summarize in this tutorial how display data with zul using the JPA.

Requirements:

  • Netbeans 6.5 with a running derby DB and the sample database (customer table)
  • Installed ZK 3.6.0 plugin

Tutorial:

Content:
1. Start a new project
2. Create a new Entity Class from Database
3. Create a Controller
4. Create the table

Read the rest of this entry »





Getting started with ZK and Netbeans

19 03 2009

In my ongoing evaluation of various web frontend frameworks, I stumbled upon the ZK Open Source Ajax (among others like IceFaces, JMaki/Dojo/Comet, JSF Controls). Even ZK appears a bit more on the Eclipse side it can easily be used in Netbans. In order to get the ZK implanted in our favorite IDE, you need to download the plugin from Sourceforge (link). Please note the startsite on ZK (SF) highlights the current version 2.0.3 from March 2009, but clicking on the download link on the right points you to the old version, so you better select the browse packages link.

Link to ZK Website
Link to SF REM 2.0.3 Plugin

Start Netbeans and open the Tools/Plugins/Downloaded and add the downloaded plugin (with the usual agree and confirm unsigned plugin dialog.

bv2009031911350016

REM 2.0.3 NB plugin

That’s it ! Welcome to ZK in Netbeans.

Start a new web project and select the ZK 360 option.

ZK360 Project

ZK360 Project

You will find a project skeleton with an initial index.zul file

ZK Project Skeleton

ZK Project Skeleton

Start the application and it gets deployed to Glassfish (or you choice of AS). So far I have no problems running it on Glassfish V2 and V3 prelude.

I run through the evaluator tutorial with ease (link).
Stay tuned for more hands-on with Netbeans and ZK.





Application Framework

9 02 2009

Looking around for a nice browser based application framework I stumbled upon 3 opensource products that are somehow integrated into the Netbeans and Glassfish world.

  • Icefaces (Woodstock migrated here) | link
  • ZK direct RIA | link
  • JMaki / Dojo | link | link

I will evaluate these 3 and report about the results here. While Icefaces and ZK are clearly enterprise enabled frameworks, JMaki is a rather consumer application orientated framework. I might be wrong with this statement, but this is my first tast bitting on it. ZK seems closer to Spring and Tomcat than Netbeans and Glassfish.