Search in sources :

Example 1 with MessageWindowController

use of org.olat.core.commons.fullWebApp.MessageWindowController in project OpenOLAT by OpenOLAT.

the class OAuthDispatcher method error.

private void error(UserRequest ureq, String message) {
    StringBuilder sb = new StringBuilder();
    sb.append("<h4><i class='o_icon o_icon-fw o_icon_error'> </i>");
    sb.append(translate(ureq, "error.title"));
    sb.append("</h4><p>");
    sb.append(message);
    sb.append("</p>");
    ChiefController msgcc = new MessageWindowController(ureq, sb.toString());
    msgcc.getWindow().dispatchRequest(ureq, true);
}
Also used : ChiefController(org.olat.core.gui.control.ChiefController) MessageWindowController(org.olat.core.commons.fullWebApp.MessageWindowController)

Example 2 with MessageWindowController

use of org.olat.core.commons.fullWebApp.MessageWindowController in project openolat by klemens.

the class OAuthDispatcher method error.

private void error(UserRequest ureq, String message) {
    StringBuilder sb = new StringBuilder();
    sb.append("<h4><i class='o_icon o_icon-fw o_icon_error'> </i>");
    sb.append(translate(ureq, "error.title"));
    sb.append("</h4><p>");
    sb.append(message);
    sb.append("</p>");
    ChiefController msgcc = new MessageWindowController(ureq, sb.toString());
    msgcc.getWindow().dispatchRequest(ureq, true);
}
Also used : ChiefController(org.olat.core.gui.control.ChiefController) MessageWindowController(org.olat.core.commons.fullWebApp.MessageWindowController)

Aggregations

MessageWindowController (org.olat.core.commons.fullWebApp.MessageWindowController)2 ChiefController (org.olat.core.gui.control.ChiefController)2