/** * Updates the wrong value message at the client. * * @param message If null, any existing message is removed. Otherwise, the specified method is * displayed next to the editor component. */ public void setWrongValueMessage(String message) { editor.setBalloon(message); }
/** * Clears any current validation error and displays a new validation error for the specified * input element. * * @param target The target input element. * @param message The validation error message. */ protected void wrongValue(BaseUIComponent target, String message) { if (wrongValueTarget != null) { wrongValueTarget.setBalloon(null); } wrongValueTarget = target; if (target != null && message != null) { target.setBalloon(StrUtil.formatMessage(message)); } }