@ProviderType 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)
Adds an Ajax behavior to the specified client behavior holder according to its default event.
|
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.
|
static javax.faces.component.behavior.AjaxBehavior |
getDefaultAjaxBehavior(javax.faces.component.behavior.ClientBehaviorHolder clientBehaviorHolder)
Gets the Ajax behavior associated with the default event of the specified client behavior holder.
|
public static void addDefaultAjaxBehavior(javax.faces.component.behavior.ClientBehaviorHolder clientBehaviorHolder,
String execute,
String process,
String defaultExecute,
String render,
String update,
String defaultRender)
clientBehaviorHolder - The client behavior holder for which to add an Ajax behavior.execute - Space delimited list of execute ids. Typically this is the value of the "execute"
attribute of a UI component.process - Space delimited list of process ids. Typically this is the value of the "process"
attribute of a UI component.defaultExecute - The value for execute in case both the execute and process parameters are
null.render - Space delimited list of render ids. Typically this is the value of the "render"
attribute of a UI component.update - Space delimited list of update ids. Typically thi sis the value of the "update"
attribute of a UI component.defaultRender - The value for render in case both the render and process parameters are
null.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.public static javax.faces.component.behavior.AjaxBehavior getDefaultAjaxBehavior(javax.faces.component.behavior.ClientBehaviorHolder clientBehaviorHolder)
null.clientBehaviorHolder - The client behavior holder that potentially has an Ajax behavior associated with
its default event.Copyright © 2020 Liferay, Inc.. All rights reserved.