Class JavascriptUtils
- java.lang.Object
-
- org.apache.myfaces.renderkit.html.util.JavascriptUtils
-
public final class JavascriptUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringencodeString(String string)static StringgetValidJavascriptName(String s, boolean checkForReservedWord)static StringgetValidJavascriptName(String s, boolean allowNamespaces, boolean checkForReservedWord)static StringgetValidJavascriptNameAsInRI(String origIdentifier)Don't use this function - except when compatibility with the RI is a must, as in the name for the clear form parameters script.static booleanisRenderClearJavascriptOnButton(ExternalContext externalContext)
-
-
-
Method Detail
-
getValidJavascriptNameAsInRI
public static String getValidJavascriptNameAsInRI(String origIdentifier)
Don't use this function - except when compatibility with the RI is a must, as in the name for the clear form parameters script.
-
getValidJavascriptName
public static String getValidJavascriptName(String s, boolean allowNamespaces, boolean checkForReservedWord)
-
getValidJavascriptName
public static String getValidJavascriptName(String s, boolean checkForReservedWord)
-
isRenderClearJavascriptOnButton
public static boolean isRenderClearJavascriptOnButton(ExternalContext externalContext)
-
-