org.apache.myfaces.shared.renderkit.html.util
Class JavascriptUtils

java.lang.Object
  extended by org.apache.myfaces.shared.renderkit.html.util.JavascriptUtils

public final class JavascriptUtils
extends Object


Field Summary
static String JAVASCRIPT_DETECTED
           
 
Method Summary
static String encodeString(String string)
           
static String getOldViewId(ExternalContext externalContext)
           
static String getValidJavascriptName(String s, boolean checkForReservedWord)
           
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.
static boolean isRenderClearJavascriptOnButton(ExternalContext externalContext)
           
static boolean isSaveFormSubmitLinkIE(ExternalContext externalContext)
           
static void setOldViewId(ExternalContext externalContext, String viewId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVASCRIPT_DETECTED

public static final String JAVASCRIPT_DETECTED
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 checkForReservedWord)

encodeString

public static String encodeString(String string)

isRenderClearJavascriptOnButton

public static boolean isRenderClearJavascriptOnButton(ExternalContext externalContext)

isSaveFormSubmitLinkIE

public static boolean isSaveFormSubmitLinkIE(ExternalContext externalContext)

setOldViewId

public static void setOldViewId(ExternalContext externalContext,
                                String viewId)

getOldViewId

public static String getOldViewId(ExternalContext externalContext)


Copyright © 2014 The Apache Software Foundation. All rights reserved.