From Documentation

Revision as of 04:08, 4 October 2012 by Iantsai (Talk | contribs)
Jump to: navigation, search

WarningTriangle-32x32.png This page is under construction, so we cannot guarantee the accuracy of the content!






  • Author
    Ian YT Tsai, Engineer, Potix Corporation
  • Date
    October 05, 2012
  • Version
    ZK 6

Contents

Introduction

Spring Framework is one of the most common framework for Java web developer. In this article, I'll introduce how to integrate ZK, Spring and Hibernate together to build a web application. First, I'll introduce the prerequisite of the demo application. The,n I'll focus on guiding how to use ZK Spring DelegatingVariableResolver properly in your ZK code and some programming tips of the Spring part design.

If you already read Practices Of Using CDI In ZK, this article is the counterpart in Spring.

Develop Environment Preparation

To get the source code, you can download everything from [1], please get the zip file named springZkDemo-XXXX.zip, and it's better to get the latest one. If your are familiar with Git, you can also clone my smalltalk repository.

IDE Setup

In this article, we use Eclipse with M2Eclipse to manage our Maven Project.

  1. Eclipse 3.x: I think everything should be fine in 4.X but I haven't try it.
  2. M2Eclipse: a Maven management Eclipse plugin.
  3. RunJettyRun: a simple Jetty Server which is very easy to use with M2Eclipse.

Demo Project Setup

If you are a Maven user and already cloned my repository , the project is a Maven project, you can use Eclipse Import Existing Project function to import it. If you get the code by downloading tthe zip file, unpack it, and put them to the project type you preferred.

About The Demo Application

First, let's start with our Demo Application,




Comments



Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.