public class RenderUtils extends Object
| Constructor and Description |
|---|
RenderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createJQueryBySelector(String elementId,
String childSelector) |
static String |
createJQueryPluginCall(String elementId,
String pluginFunctionCall) |
static String |
createJQueryPluginCall(String elementId,
String childSelector,
String pluginFunctionCall) |
static String |
createOptionsStringForJQueryPluginCall(Map<String,String> options) |
static void |
renderJavaScriptCall(String function,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent) |
static void |
renderJQueryPluginCall(String elementId,
String pluginFunctionCall,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent)
Renders a script element with a function call for a jquery plugin
|
static void |
renderJQueryPluginCall(String elementId,
String childSelector,
String pluginFunctionCall,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent) |
public static final void renderJavaScriptCall(String function, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent) throws IOException
IOExceptionpublic static final void renderJQueryPluginCall(String elementId, String pluginFunctionCall, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent) throws IOException
elementId - the html id of the element without leading # (e.g. 'myElementId')pluginFunctionCall - the plugin function call (e.g. 'tooltip()')writer - component writeruiComponent - component to add scriptIOException - if writer throws an errorpublic static final void renderJQueryPluginCall(String elementId, String childSelector, String pluginFunctionCall, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent) throws IOException
IOExceptionpublic static String createJQueryPluginCall(String elementId, String pluginFunctionCall)
public static String createJQueryPluginCall(String elementId, String childSelector, String pluginFunctionCall)
public static String createJQueryBySelector(String elementId, String childSelector)
Copyright © 2015. All rights reserved.