public static FormValidation warningWithMarkup(String message) { return _errorWithMarkup(message,Kind.WARNING); }
/** * Sends out an HTML fragment that indicates an error. * * <p> * This method must be used with care to avoid cross-site scripting * attack. * * @param message * Human readable message to be sent. {@code error(null)} * can be used as {@code ok()}. */ public static FormValidation errorWithMarkup(String message) { return _errorWithMarkup(message,Kind.ERROR); }
public static FormValidation okWithMarkup(String message) { return _errorWithMarkup(message,Kind.OK); }
private static FormValidation _error(Kind kind, Throwable e, String message) { if (e==null) return _errorWithMarkup(Util.escape(message),kind); return _errorWithMarkup(Util.escape(message)+ " <a href='#' class='showDetails'>" + Messages.FormValidation_Error_Details() + "</a><pre style='display:none'>" + Util.escape(Functions.printThrowable(e)) + "</pre>",kind ); }
/** * Sends out an HTML fragment that indicates an error. * * <p> This method must be used with care to avoid cross-site scripting * attack. * * @param message Human readable message to be sent. <tt>error(null)</tt> * can be used as <tt>ok()</tt>. */ public static FormValidation errorWithMarkup(String message) { return _errorWithMarkup(message, Kind.ERROR); }
public static FormValidation warningWithMarkup(String message) { return _errorWithMarkup(message,Kind.WARNING); }
/** * Sends out an HTML fragment that indicates an error. * * <p> * This method must be used with care to avoid cross-site scripting * attack. * * @param message * Human readable message to be sent. <tt>error(null)</tt> * can be used as <tt>ok()</tt>. */ public static FormValidation errorWithMarkup(String message) { return _errorWithMarkup(message,Kind.ERROR); }
/** * Sends out an HTML fragment that indicates an error. * * <p> * This method must be used with care to avoid cross-site scripting * attack. * * @param message * Human readable message to be sent. <tt>error(null)</tt> * can be used as <tt>ok()</tt>. */ public static FormValidation errorWithMarkup(String message) { return _errorWithMarkup(message,Kind.ERROR); }
public static FormValidation warningWithMarkup(String message) { return _errorWithMarkup(message,Kind.WARNING); }
public static FormValidation okWithMarkup(String message) { return _errorWithMarkup(message,Kind.OK); }
/** * Sends out an HTML fragment that indicates an error. * * <p> * This method must be used with care to avoid cross-site scripting * attack. * * @param message * Human readable message to be sent. <tt>error(null)</tt> * can be used as <tt>ok()</tt>. */ public static FormValidation errorWithMarkup(String message) { return _errorWithMarkup(message,Kind.ERROR); }
public static FormValidation okWithMarkup(String message) { return _errorWithMarkup(message,Kind.OK); }
public static FormValidation okWithMarkup(String message) { return _errorWithMarkup(message, Kind.OK); }
public static FormValidation warningWithMarkup(String message) { return _errorWithMarkup(message,Kind.WARNING); }
public static FormValidation okWithMarkup(String message) { return _errorWithMarkup(message,Kind.OK); }
private static FormValidation _error(Kind kind, Throwable e, String message) { if (e==null) return _errorWithMarkup(Util.escape(message),kind); return _errorWithMarkup(Util.escape(message)+ " <a href='#' class='showDetails'>" + Messages.FormValidation_Error_Details() + "</a><pre style='display:none'>" + Functions.printThrowable(e) + "</pre>",kind ); }
private static FormValidation _error(Kind kind, Throwable e, String message) { if (e==null) return _errorWithMarkup(Util.escape(message),kind); return _errorWithMarkup(Util.escape(message)+ " <a href='#' class='showDetails'>" + Messages.FormValidation_Error_Details() + "</a><pre style='display:none'>" + Functions.printThrowable(e) + "</pre>",kind ); }
private static FormValidation _error(Kind kind, Throwable e, String message) { if (e == null) { return _errorWithMarkup(Util.escape(message), kind); } return _errorWithMarkup(Util.escape(message) + " <a href='#' class='showDetails'>" + Messages.FormValidation_Error_Details() + "</a><pre style='display:none'>" + Functions.printThrowable(e) + "</pre>", kind); }
private static FormValidation _error(Kind kind, Throwable e, String message) { if (e==null) return _errorWithMarkup(Util.escape(message),kind); return _errorWithMarkup(Util.escape(message)+ " <a href='#' class='showDetails'>" + Messages.FormValidation_Error_Details() + "</a><pre style='display:none'>" + Functions.printThrowable(e) + "</pre>",kind ); }
private static FormValidation _error(Kind kind, Throwable e, String message) { if (e==null) return _errorWithMarkup(Util.escape(message),kind); return _errorWithMarkup(Util.escape(message)+ " <a href='#' class='showDetails'>" + Messages.FormValidation_Error_Details() + "</a><pre style='display:none'>" + Util.escape(Functions.printThrowable(e)) + "</pre>",kind ); }