Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Develop a simple Web application with Apache Wicket and Apache Geronimo

Combine Wicket, Geronimo, and Apache Derby to form an open source Java Web development platform

Robi Sen (rsen@department13.com), Vice President, Department 13 LLC
Robi Sen is the vice president of services for Department 13, LLC, an IT consultancy, where he spends most of his time helping customers, ranging from Fortune 500 companies to startups, define and manage their technology challenges. He has written widely on different technologies and often lectures and presents at various conventions.

Summary:  Apache Wicket is an innovative Java™ Web application framework that was introduced a couple of years ago. It helps simplify Web application development by clearly separating the roles of developers and designers. It lets you remove logical code from the view layer, eliminating the need for JavaServer Pages (JSP), providing a simple plain old Java object (POJO)-centric mode of development, and removing much of the need for XML and other configuration file formats. In this tutorial, learn how to set up your system to develop a simple Web application with Wicket, using Apache Geronimo as your application server and Apache Derby as the embedded database.

Date:  10 Jul 2007
Level:  Intermediate PDF:  A4 and Letter (690 KB | 29 pages)Get Adobe® Reader®

Activity:  29872 views
Comments:  

Before you start

This tutorial is designed for developers who have found Java frameworks, such as Struts, lacking in needed functionality. If you're interested in developing Web applications in a more object-oriented manner, where the view is clearly separated from logic and there's minimal configuration and mapping, then Wicket is for you!

This tutorial walks you through the basics of how Wicket works, while using Apache Geronimo to set up a Java Platform, Enterprise Edition (Java EE) server, Web server, and embedded database in just minutes. Combining Wicket with Geronimo lets you develop data-driven, scalable Web applications using software that's all open source.

About this tutorial

Developing Java Web applications can be awkward and frustrating. For years developers have tried to solve problems with Java application development by creating frameworks that solve specific problems. But few have been able to simplify Web development, separate roles, clearly separate the view from the model and remove special markup, and define a totally POJO-centric model of development — until now. Enter Apache Wicket.

Wicket, an innovative Java Web application framework introduced a couple of years ago, simplifies Web application development by clearly separating roles of developers and designers, in part by removing logical code from the view layer. This simple and pure approach to Model-View-Controller (MVC) development, coupled with its simple development workflow that lacks XML configuration files, make Wicket a powerful and enjoyable development framework. It solves a number of development challenges, allowing you to focus more on functionality and less on the application configuration.

In this tutorial, you zero in on how to set up and configure a project to use the Wicket framework with Databinder, which allows Wicket and Hibernate to work nicely together. You combine these applications with the Apache Derby embedded database to create a simple Web application in record time. From there, you learn how to deploy your application on Geronimo.


System requirements

You need the following tools to follow along with this tutorial:

  • Apache Geronimo 2.0-M2 with Tomcat 6 — Geronimo is the Java EE application server that you deploy to.
  • An operating system — This application was developed using Microsoft® Windows® XP, but everything involved has been widely used on Linux® and OS X. So you should be able to follow the tutorial using platforms other than Windows.
  • Java JDK 1.5 or later — Java 1.5_11 was used to develop all the code in this tutorial, but 1.5 and later JDKs should work.
  • Embedded database — This tutorial uses Apache Derby, the lightweight, 100% Java-based database. Because Geronimo already has Derby built in, you don't need to download anything.
  • Eclipse — In this tutorial, you use Eclipse 3.2 as the IDE. It's not required, but it greatly simplifies your development process.
  • Apache Maven 2 — You use Maven 2 in this project to automatically gather required files and build projects.
  • Databinder — A lightweight utility written by Nathan Hamblen, Databinder is a tool that lets Wicket and Hibernate work together extremely well, greatly simplifying development of data-driven Wicket applications.

1 of 7 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Open source, Web development, WebSphere
ArticleID=237749
TutorialTitle=Develop a simple Web application with Apache Wicket and Apache Geronimo
publish-date=07102007
author1-email=rsen@department13.com
author1-email-cc=ruterbo@us.ibm.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.