wicket-phonebook
Wicket Phonebook is an example of Spring & Hibernate, iBatis or ShadesDB usage in a Wicket web-app.
- The database is an in-memory HSQLDB DB - In this example, the schema gets generated automatically every time the app starts up.
- Hooking up to a different database is a simple matter of editing src/conf/application.properties.
- All database-related code is inside DAO objects, so Wicket never touches anything database related.
- Session management and transaction management is handled by Spring.
Project maintainers
Igor Vaynberg
Gwyn Evans
Downloading
You can get wicket-phonebook from the SVN repository:
for wicket 1.x (1.4) https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/phonebook
for wicket 2.x (2.0) https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-2-DISCONTINUED/wicket-phonebook/
There is also a release which is out of date, but still available at http://prdownloads.sourceforge.net/wicket-stuff/wicket-phonebook-1.2.war?download. The SVN code is likely to be better though.
Running
To run the phonebook using Maven:
- Checkout the latest snapshot from SVN.
svn co https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/phonebook - In the pom.xml file, you might want to change 1.4-SNAPSHOT to 1.4.0, since -SNAPSHOT versions aren't in the default repositories. (See http://wicketstuff.org/confluence/display/STUFFWEB/Home for more info about Maven repositories and versions.)
- Install the required artifacts using
mvn install
- Run the phonebook example with
mvn jetty:run
and point your browser to localhost://8080.