01: /*
02: * $Id: AjaxApplication.java 461582 2006-07-26 10:15:53Z jcompagner $ $Revision:
03: * 4860 $ $Date: 2006-07-26 12:15:53 +0200 (Wed, 26 Jul 2006) $
04: *
05: * ==============================================================================
06: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
07: * use this file except in compliance with the License. You may obtain a copy of
08: * the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.examples.ajax.builtin;
19:
20: import wicket.examples.WicketExampleApplication;
21: import wicket.markup.html.AjaxServerAndClientTimeFilter;
22:
23: /**
24: * Application object for the wicked ajax examples
25: */
26: public class AjaxApplication extends WicketExampleApplication {
27: /**
28: * Constructor.
29: */
30: public AjaxApplication() {
31: }
32:
33: /**
34: * @see wicket.examples.WicketExampleApplication#init()
35: */
36: protected void init() {
37: getExceptionSettings()
38: .setThrowExceptionOnMissingResource(false);
39: getRequestCycleSettings().addResponseFilter(
40: new AjaxServerAndClientTimeFilter());
41: getAjaxSettings().setAjaxDebugModeEnabled(true);
42: }
43:
44: /**
45: * @see wicket.Application#getHomePage()
46: */
47: public Class getHomePage() {
48: return Index.class;
49: }
50: }
|