public class RendererUtil extends Object
| Constructor and Description |
|---|
RendererUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDefaultAjaxBehavior(javax.faces.component.behavior.ClientBehaviorHolder clientBehaviorHolder,
String execute,
String process,
String defaultExecute,
String render,
String update,
String defaultRender) |
static void |
decodeClientBehaviors(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent) |
static void |
encodeStyleable(javax.faces.context.ResponseWriter responseWriter,
Styleable styleable,
String... classNames) |
static String |
escapeJavaScript(String javaScript)
Escapes JavaScript so that it can safely be rendered as string in the browser.
|
public static void addDefaultAjaxBehavior(javax.faces.component.behavior.ClientBehaviorHolder clientBehaviorHolder,
String execute,
String process,
String defaultExecute,
String render,
String update,
String defaultRender)
public static void decodeClientBehaviors(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
public static void encodeStyleable(javax.faces.context.ResponseWriter responseWriter,
Styleable styleable,
String... classNames)
throws IOException
IOExceptionpublic static String escapeJavaScript(String javaScript)
javaScript - a JavaScript string which has not been escaped to prevent XSS.Copyright © 2016 Liferay, Inc.. All rights reserved.