Examples

Click provides an Examples web application to demonstrate Click features and common design patterns. The examples application is an important learning resource, and will help you to get up and running with Click as soon as possible.

This application will allows you to view the Page source code, templates and config files online.

You can view this application online at http://www.avoka.com/click-examples/

Deploying Examples

Pre built dist/click-examples.war file is provided in the Click distribution. Simply copy this file to your application servers deployment directory.

This WAR file will deploy to the contexts:

/click-examples

Building Examples

To build the Examples application see the Building topic for details.

Please also see the examples/README.txt file for additional details.

 

Other Example Applications

The Click source repository contains a few other webpplications that can be used as example.

Click Bench

A performance test bench webapplication.

You can checkout this application from http://svn.apache.org/repos/asf/click/trunk/examples/click-bench/

Click Cayenne

A very simple demo webapplication based only on Click and Cayenne.

You can checkout this application from http://svn.apache.org/repos/asf/click/trunk/examples/click-cayenne/

Click Spring Cayenne

A webapplication based on Click, Spring and Cayenne. This application is derrived from the classical Petclinic webapplication.

You can checkout this application from http://svn.apache.org/repos/asf/click/trunk/examples/click-spring-cayenne/

For details about the original Petclinic application used here, please also see the petclinic/war/petclinic.html file.

To build this webapplication, please also see the README.txt file about how to proceed.

 

Third-party Example Applications

ClickClick Demo

A live demo is hosted on Google App Engine.

This example demonstrates some of ClickClick's features. Please see the ClickClick project for more details.

jQuery Demo

A live demo is hosted on Google App Engine.

This example demonstrates the jQuery integration provided in ClickClick. Please see the ClickClick project for more details.

JPA Demo

A live demo is hosted on Google App Engine.

This example demonstrates using JPA and Click. The Click-JPA example is available here.