Search in sources :

Example 1 with ServerHostNameAndTimeFilter

use of org.apache.wicket.examples.ServerHostNameAndTimeFilter in project wicket by apache.

the class LinkomaticApplication method init.

@Override
protected void init() {
    super.init();
    mountPage("/home", Home.class);
    getSharedResources().add("cancelButton", new DefaultButtonImageResource("Cancel"));
    // log host name and server time in the browser's status bar
    getRequestCycleSettings().addResponseFilter(new ServerHostNameAndTimeFilter());
}
Also used : ServerHostNameAndTimeFilter(org.apache.wicket.examples.ServerHostNameAndTimeFilter) DefaultButtonImageResource(org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource)

Aggregations

ServerHostNameAndTimeFilter (org.apache.wicket.examples.ServerHostNameAndTimeFilter)1 DefaultButtonImageResource (org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource)1