|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.shared.renderkit.html.HtmlJavaScriptUtils
public final class HtmlJavaScriptUtils
Constructor Summary | |
---|---|
HtmlJavaScriptUtils()
|
Method Summary | |
---|---|
static void |
appendAutoScrollAssignment(FacesContext context,
StringBuffer 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(StringBuffer onClickValue,
String formName)
|
static void |
appendClearHiddenCommandFormParamsFunctionCall(StringBuffer 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(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(FacesContext facesContext,
ResponseWriter writer)
Renders the autoscroll javascript function. |
static void |
renderAutoScrollHiddenInput(FacesContext facesContext,
ResponseWriter writer)
Renders the hidden form input that is necessary for the autoscroll feature. |
static void |
renderClearHiddenCommandFormParamsFunction(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(FacesContext facesContext)
|
static void |
renderViewStateJavascript(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(FacesContext facesContext) throws IOException
IOException
public static void appendAutoScrollAssignment(StringBuffer onClickValue, String formName)
public static void appendAutoScrollAssignment(FacesContext context, StringBuffer onClickValue, String formName)
public static String getAutoScrollFunction(FacesContext facesContext)
public static void renderAutoScrollHiddenInput(FacesContext facesContext, ResponseWriter writer) throws IOException
IOException
public static void renderAutoScrollFunction(FacesContext facesContext, ResponseWriter writer) throws IOException
IOException
public static void appendClearHiddenCommandFormParamsFunctionCall(StringBuffer buf, String formName)
public static String getClearHiddenCommandFormParamsFunctionName(String formName)
formName
-
public static String getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy(String formName)
public static void renderClearHiddenCommandFormParamsFunction(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(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 |