Click
Click Examples

Source Viewer : WEB-INF/classes/org/apache/click/examples/page/introduction/HelloWorld.java

package org.apache.click.examples.page.introduction;

import java.util.Date;

import org.apache.click.examples.page.BorderPage;

/**
 * Provides HelloWorld world example Page. Possibly the simplest dynamic example
 * you can get.
 * <p/>
 * Note the public scope time Date field is automatically added to the page's
 * model as a value named "time".
 */
public class HelloWorld extends BorderPage {

    private static final long serialVersionUID = 1L;

    private Date time = new Date();

    public HelloWorld() {
        addModel("time", time);
    }
}