Example usage for org.apache.wicket.feedback FeedbackMessage isSuccess

List of usage examples for org.apache.wicket.feedback FeedbackMessage isSuccess

Introduction

In this page you can find the example usage for org.apache.wicket.feedback FeedbackMessage isSuccess.

Prototype

public final boolean isSuccess() 

Source Link

Document

Gets whether the current level is SUCCESS or up.

Usage

From source file:org.apache.syncope.client.console.panels.NotificationPanel.java

License:Apache License

public final void refresh(final IPartialPageRequestHandler handler) {
    for (FeedbackMessage message : this.getModelObject()) {
        if (message.isError()) {
            this.notification.error(handler, message.getMessage());
        } else if (message.isSuccess() || message.isInfo()) {
            this.notification.success(handler, message.getMessage());
        } else {/*w w w.  j ava2s.  com*/
            this.notification.warn(handler, message.getMessage());
        }
        message.markRendered();
    }
}