Arch2Arch Tab BEA.com
Syndicate this blog (XML)

A sip of ZK

Bookmark Blog Post

del.icio.us del.icio.us
Digg Digg
DZone DZone
Furl Furl
Reddit Reddit

Dhrubojyoti Kayal's Blog | August 14, 2007   3:18 AM | Comments (5)


Getting started with a ZK web application is really very easy. It is based on XUL - XML UI Language which is the heart of Mozilla platform. Here is the step by step process for the same.

Step 1: Create a dynamic web project As a first step create a dynamic web project using Workshop.

Step 2: Unzip the ZK distribution You can download the latest ZK distribution here - http://www.zkoss.org/download/ Unzip the downloaded installation on the filesystem.

Step 3: Copy Jars Copy the following the jars listed below to WEB-INF/lib
  • bsh.jar
  • commons-el.jar
  • commons-fileupload.jar
  • commons-io.jar
  • dojoz.jar
  • fckez.jar
  • Filters.jar
  • gmapsz.jar
  • groovy.jar
  • jcommon.jar
  • jfreechart.jar
  • jruby.jar
  • js.jar
  • json_simple.jar
  • timelinez.jar
  • zcommon.jar
  • zhtml.jar
  • zk.jar
  • zkplus.jar
  • zul.jar
  • zweb.jar

Note - that all of the jars listed above may not be necessary to run ZK.

Step 4: Modify your web.xml Modify your web.xml file as the attached file - Download web.xml

Step 5: Code the first ZUL UI file Here is the simple zul file - Download login.zul file

Step 6: And Finally.... Now its time to start WLS10 from your Workshop. Add the newly created project for deployment.Open the zul file in the browser as normal html page - http://localhost:7001/ZKWeb/login.zul
First%20SIP.gif

Comments

Comments are listed in date ascending order (oldest first) | Post Comment

  • Sorry for my late reply. I had imported ZK to Workshop. It's working now. Thanks! BTW, I found a tutorial with screenshots at D2D China. But, it's in Chinese. http://dev2dev.bea.com.cn/techdoc/2007/04/java-soa-BEA-Workshop-ZK-image0470425.html

    Posted by: Ichiro on August 29, 2007 at 9:05 PM

  • Can you elaborate what exactly you are looking for

    Posted by: dhrubo on August 16, 2007 at 10:49 PM

  • It's helpful. Thanks! Would you have more specific guide how to use ZK in Workshop? Such as J2EE libraries. TIA.

    Posted by: Ichiro on August 16, 2007 at 8:23 PM

  • Ya its the simplicity of development and deployment that really amazed me. Another good part is the support in the forum. Its instantaneous most of the time. It seems these guys are always awake. One more important thing for me, they have now added mobile support.

    Posted by: dhrubo on August 16, 2007 at 2:24 AM

  • Hey that's interesting. I found their user guide to be a nice demo. I've been using GWT, which is a great way to do Ajax, but this looks interesting....

    Posted by: jonmountjoy on August 16, 2007 at 1:57 AM



Only logged in users may post comments. Login Here.

Powered by
Movable Type 3.31