Rendering.addJsonParam(backgroundLayerParams, "transparency", /*don't remove (double) cast -- the other function will be invoked*/(double) dpm.getBackgroundTransparency());
Rendering.addJsonParam(backgroundLayerParams, "transparencyTransitionPeriod", /*don't remove (int) cast -- the other function will be invoked*/(int) dpm.getBackgroundTransparencyTransitionPeriod());
}
Styles.renderStyleClasses(context, dpm, true, true);
ScriptBuilder setMessageScript = new ScriptBuilder().functionCall("O$.setAjaxMessageHTML",
ajaxMessageHTML,
dpm.getHorizontalAlignment(),
dpm.getVerticalAlignment(),
dpm.getTransparency(),
dpm.getTransparencyTransitionPeriod(),
backgroundLayerParams).semicolon();
if (isAjaxCleanupRequired()) {
setMessageScript.functionCall("O$.setAjaxCleanupRequired", true).semicolon();
}
if (isAjax4jsfRequest || isPortletRequest) {
Rendering.renderInitScript(context, setMessageScript);
} else {