renderMessage(context, component);
String forComponentClientId = getForComponentClientId(context, component);
UIComponent forComponent = getForComponent(component);
ValidationProcessor validationProcessor = ValidationProcessor.getInstance(context);
if (validationProcessor != null) {
ClientValidationMode cv = validationProcessor.getClientValidationRule(component, forComponent);
boolean clientValidation = !cv.equals(ClientValidationMode.OFF);
if (clientValidation) {
if (forComponentClientId == null) {
Rendering.logWarning(context, "Cannot render floatingIconMessage bacause can't calculate " +
"target component client ID. It may be caused by 'for' attribute absence");
return;
}
UIForm form = Components.getEnclosingForm(component);
if (validationProcessor.isUseDefaultClientValidationPresentationForForm(form)) {
ValidatorUtil.renderPresentationExistsForComponent(forComponentClientId, context);
}
Script clientScript = getClientScript(component.getClientId(context), forComponentClientId, component);
Rendering.renderInitScript(context, clientScript, getJavascriptLibraryUrls(context, clientValidation));
Styles.renderStyleClasses(context, component);