Example usage for org.apache.wicket.markup.html.basic MultiLineLabel setEscapeModelStrings

List of usage examples for org.apache.wicket.markup.html.basic MultiLineLabel setEscapeModelStrings

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.basic MultiLineLabel setEscapeModelStrings.

Prototype

public final Component setEscapeModelStrings(final boolean escapeMarkup) 

Source Link

Document

Sets whether model strings should be escaped.

Usage

From source file:org.jabylon.rest.ui.wicket.components.CustomFeedbackPanel.java

License:Open Source License

/**
 * Generates a component that is used to display the message inside the
 * feedback panel. This component must handle being attached to
 * <code>span</code> tags.//w  w  w  .j  a  v  a  2  s.c  o  m
 *
 * By default a {@link Label} is used.
 *
 * Note that the created component is expected to respect feedback panel's
 * {@link #getEscapeModelStrings()} value
 *
 * @param id
 *            parent id
 * @param message
 *            feedback message
 * @return component used to display the message
 */
protected Component newMessageDisplayComponent(String id, FeedbackMessage message) {
    Serializable serializable = message.getMessage();
    MultiLineLabel label = new MultiLineLabel(id, (serializable == null) ? "" : serializable.toString());
    label.setEscapeModelStrings(CustomFeedbackPanel.this.getEscapeModelStrings());
    return label;
}

From source file:org.obiba.onyx.jade.core.wicket.instrument.NoInstrumentAvailablePanel.java

License:Open Source License

public NoInstrumentAvailablePanel(String id) {
    super(id);//w w  w  . ja v  a2s .c om
    MultiLineLabel message;
    add(message = new MultiLineLabel("noInstrumentAvailableMessage",
            new ResourceModel("NoInstrumentAvailable")));
    message.setEscapeModelStrings(false);
}