How can I add a feedback message of type UNDEFINED to the session. The session only provides methods for info, warning & error. Even though the Javadocs for FeedbackMessages says "WARNING: This class should typically NOT be used directly.", I tried the following in a class extending Session. However, it didn't work:
/** * Registers a success feedback message for this session. * @param reporter The component reporting the message. * @param message The message. * @param arguments Optional format arguments, as for {@link String#format(String, Object...)}. */ public void success(final Component reporter, final String message, final Object... arguments) { final FeedbackMessage feedback = new FeedbackMessage (reporter, String.format(message, arguments), FeedbackMessage.UNDEFINED); getFeedbackMessages().add(feedback); } ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **