01: /*
02: * $Id: LabelWithoutEscapeMarkupPage.java 459507 2006-02-26 02:38:34Z ehillenius $ $Revision:
03: * 1.2 $ $Date: 2006-02-26 03:38:34 +0100 (Sun, 26 Feb 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.basic;
19:
20: import wicket.markup.html.WebPage;
21:
22: /**
23: * Tests a label without escaping markup.
24: *
25: * @author Eelco Hillenius
26: */
27: public class LabelWithoutEscapeMarkupPage extends WebPage {
28: private static final long serialVersionUID = 1L;
29:
30: /**
31: * Construct.
32: *
33: */
34: public LabelWithoutEscapeMarkupPage() {
35: Label label = new Label("label", "test:'\"");
36: label.setEscapeModelStrings(false);
37: add(label);
38: }
39: }
|