(no commit message)
[utils] / wicket / components / src / test / java / org / wamblee / wicket / MyPage.java
1 package org.wamblee.wicket;
2
3 import org.apache.wicket.Component;
4 import org.apache.wicket.markup.html.WebPage;
5 import org.apache.wicket.markup.html.basic.Label;
6 import org.apache.wicket.markup.html.form.Button;
7 import org.apache.wicket.markup.html.form.Form;
8 import org.apache.wicket.markup.html.form.validation.IFormValidator;
9
10 public class MyPage extends WebPage {
11     
12     private Form form;
13     private Label label;
14
15     public MyPage() { 
16         form = new Form("form");
17         label = new Label("label");
18         add(form);
19         form.add(createButton("submit")); 
20         
21         add(label);
22     }
23     
24     protected Component createButton(String aId) {
25         return new Button(aId);
26     }
27
28     public Form getForm() {
29         return form;
30     }
31     
32     public Label getLabel() {
33         return label;
34     }
35     
36 }