01: /*
02: * $Id: CookieValuePersisterTestPage.java 458620 2006-01-14 00:54:30Z ivaynberg $
03: * $Revision: 458620 $ $Date: 2006-01-14 01:54:30 +0100 (Sat, 14 Jan 2006) $
04: *
05: * ==================================================================== Licensed
06: * under the Apache License, Version 2.0 (the "License"); you may not use this
07: * file except in compliance with the License. You may obtain a copy of the
08: * 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.markup.html.form.persistence;
19:
20: import wicket.markup.html.WebPage;
21: import wicket.markup.html.form.Form;
22: import wicket.markup.html.form.TextField;
23: import wicket.markup.html.panel.FeedbackPanel;
24: import wicket.model.Model;
25:
26: /**
27: * Mock page for testing.
28: *
29: * @author Chris Turner
30: */
31: public class CookieValuePersisterTestPage extends WebPage {
32: private static final long serialVersionUID = 1L;
33:
34: /**
35: * Construct.
36: *
37: *
38: */
39: public CookieValuePersisterTestPage() {
40:
41: // Create and add feedback panel to page
42: final FeedbackPanel feedback = new FeedbackPanel("feedback");
43: add(feedback);
44: add(new TestForm("form"));
45: }
46:
47: /**
48: *
49: * @author Juergen Donnerstag
50: */
51: public final class TestForm extends Form {
52: private static final long serialVersionUID = 1L;
53:
54: /**
55: * Constructor
56: *
57: * @param id
58: * Name of form
59: */
60: public TestForm(final String id) {
61: super (id);
62:
63: add(new TextField("input", new Model("test")));
64: }
65:
66: /**
67: * Dummy
68: */
69: public final void onSubmit() {
70: }
71: }
72: }
|