|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.shared_tomahawk.renderkit.html.HtmlJavaScriptUtils
public final class HtmlJavaScriptUtils
Constructor Summary | |
---|---|
HtmlJavaScriptUtils()
|
Method Summary | |
---|---|
static void |
appendAutoScrollAssignment(javax.faces.context.FacesContext context,
StringBuilder onClickValue,
String formName)
Adds the hidden form input value assignment that is necessary for the autoscroll feature to an html link or button onclick attribute. |
static void |
appendAutoScrollAssignment(StringBuilder onClickValue,
String formName)
|
static void |
appendClearHiddenCommandFormParamsFunctionCall(StringBuilder buf,
String formName)
|
static String |
escapeJavaScriptForChain(String javaScript)
This function correctly escapes the given JavaScript code for the use in the jsf.util.chain() JavaScript function. |
static String |
getAutoScrollFunction(javax.faces.context.FacesContext facesContext)
|
static String |
getClearHiddenCommandFormParamsFunctionName(String formName)
Prefixes the given String with "clear_" and removes special characters |
static String |
getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy(String formName)
|
static void |
renderAutoScrollFunction(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer)
Renders the autoscroll javascript function. |
static void |
renderAutoScrollHiddenInput(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer)
Renders the hidden form input that is necessary for the autoscroll feature. |
static void |
renderClearHiddenCommandFormParamsFunction(javax.faces.context.ResponseWriter writer,
String formName,
Set dummyFormParams,
String formTarget)
Render the javascript function that is called on a click on a commandLink to clear the hidden inputs. |
static void |
renderFormSubmitScript(javax.faces.context.FacesContext facesContext)
|
static void |
renderViewStateJavascript(javax.faces.context.FacesContext facesContext,
String hiddenId,
String serializedState)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlJavaScriptUtils()
Method Detail |
---|
public static void renderFormSubmitScript(javax.faces.context.FacesContext facesContext) throws IOException
IOException
public static void appendAutoScrollAssignment(StringBuilder onClickValue, String formName)
public static void appendAutoScrollAssignment(javax.faces.context.FacesContext context, StringBuilder onClickValue, String formName)
public static String getAutoScrollFunction(javax.faces.context.FacesContext facesContext)
public static void renderAutoScrollHiddenInput(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer) throws IOException
IOException
public static void renderAutoScrollFunction(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer) throws IOException
IOException
public static void appendClearHiddenCommandFormParamsFunctionCall(StringBuilder buf, String formName)
public static String getClearHiddenCommandFormParamsFunctionName(String formName)
formName
-
public static String getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy(String formName)
public static void renderClearHiddenCommandFormParamsFunction(javax.faces.context.ResponseWriter writer, String formName, Set dummyFormParams, String formTarget) throws IOException
writer
- formName
- dummyFormParams
- formTarget
-
IOException
public static String escapeJavaScriptForChain(String javaScript)
javaScript
-
public static void renderViewStateJavascript(javax.faces.context.FacesContext facesContext, String hiddenId, String serializedState) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |