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 |
createJQueryPluginCall(String elementId,
String childSelector,
String pluginFunctionCall,
String previousCalls) |
static String |
createOptionsStringForJQueryPluginCall(Map<String,String> options) |
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
|
public static 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 String createJQueryPluginCall(String elementId, String pluginFunctionCall)
public static String createJQueryPluginCall(String elementId, String childSelector, String pluginFunctionCall)
public static String createJQueryPluginCall(String elementId, String childSelector, String pluginFunctionCall, String previousCalls)
public static String createJQueryBySelector(String elementId, String childSelector)
Copyright © 2019. All rights reserved.