01: /*
02: * $Id: ComponentCreateTag_4.java 458620 2006-01-14 00:54:30Z ivaynberg $
03: * $Revision: 458620 $
04: * $Date: 2006-01-14 01:54:30 +0100 (Sat, 14 Jan 2006) $
05: *
06: * ====================================================================
07: * Licensed under the Apache License, Version 2.0 (the "License");
08: * you may not use this file except in compliance with the License.
09: * You may obtain a copy of the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS,
15: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16: * See the License for the specific language governing permissions and
17: * limitations under the License.
18: */
19: package wicket.markup;
20:
21: import wicket.markup.html.WebPage;
22: import wicket.markup.html.basic.Label;
23:
24: /**
25: * Mock page for testing.
26: *
27: * @author Chris Turner
28: */
29: public class ComponentCreateTag_4 extends WebPage {
30: private static final long serialVersionUID = 1L;
31:
32: /**
33: * Construct.
34: */
35: public ComponentCreateTag_4() {
36: // <wicket:component> are treated as anonymous because they not
37: // accessible nor available right now. Thus you do not add
38: // the label contained in <wicket:component> to that specific
39: // component. You rather add it to its parent, which in this
40: // case is the page.
41: add(new Label("txt1", "Demo 1"));
42: add(new Label("txt2", "Demo 2"));
43: }
44: }
|