Wicket Remove


[back to the reference]

Unlike Label, MultiLineLabel shows text that spans multiple lines by inserting line breaks (BR tags) for newlines and paragraph markers (P tags) for sequences of more than one newline.

This is a line.
And this is another line.
End of lines.

Behind the Scenes

Example HTML

<span wicket:id="multiLineLabel" class="mark">this text will be replaced</span>

Example Code

    public MultiLineLabelPage() {
        String text =
                "\nThis is a line.\n" +
                        "And this is another line.\n" +
                        "End of lines.\n";

        add(new MultiLineLabel("multiLineLabel", text));

Further examples & and comments/explanations may be available in the source code.