/** * Gets whether model messages should be HTML escaped. Default is true. * * @return whether model messages should be HTML escaped * * @deprecated use {@link #getEscapeModelStrings()} instead */ public final boolean getEscapeMessages() { return getEscapeModelStrings(); }
/** * Gets whether model messages should be HTML escaped. Default is true. * * @return whether model messages should be HTML escaped * * @deprecated use {@link #getEscapeModelStrings()} instead */ @Deprecated public final boolean getEscapeMessages() { return getEscapeModelStrings(); }
/** * 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. * * 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 rawMessage = message.getMessage(); Label label = new Label(id, rawMessage); label.setEscapeModelStrings(FeedbackPanel.this.getEscapeModelStrings()); return label; }
/** * 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. * * 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(); Label label = new Label(id, (serializable == null) ? "" : serializable.toString()); label.setEscapeModelStrings(FeedbackPanel.this.getEscapeModelStrings()); return label; } }
/** * 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. * * 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) { Label label = new Label(id, message.getMessage().toString()); label.setEscapeModelStrings(FeedbackPanel.this.getEscapeModelStrings()); return label; } }
/** * 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. * * 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 rawMessage = message.getMessage(); Label label = new Label(id, rawMessage); label.setEscapeModelStrings(FeedbackPanel.this.getEscapeModelStrings()); return label; }