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 java.lang.Object

Version:
$Revision: 824859 $ $Date: 2009-10-13 12:42:36 -0500 (Tue, 13 Oct 2009) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $), Anton Koinov

Field Summary
static java.lang.String JAVASCRIPT_DETECTED
           
 
Method Summary
static java.lang.String encodeString(java.lang.String string)
           
static java.lang.String getOldViewId(javax.faces.context.ExternalContext externalContext)
           
static java.lang.String getValidJavascriptName(java.lang.String s, boolean checkForReservedWord)
           
static java.lang.String getValidJavascriptNameAsInRI(java.lang.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 isJavascriptAllowed(javax.faces.context.ExternalContext externalContext)
           
static boolean isJavascriptDetected(javax.faces.context.ExternalContext externalContext)
           
static boolean isRenderClearJavascriptOnButton(javax.faces.context.ExternalContext externalContext)
           
static boolean isSaveFormSubmitLinkIE(javax.faces.context.ExternalContext externalContext)
           
static void setJavascriptDetected(javax.servlet.http.HttpSession session, boolean value)
           
static void setOldViewId(javax.faces.context.ExternalContext externalContext, java.lang.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 java.lang.String JAVASCRIPT_DETECTED
Method Detail

getValidJavascriptNameAsInRI

public static java.lang.String getValidJavascriptNameAsInRI(java.lang.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 java.lang.String getValidJavascriptName(java.lang.String s,
                                                      boolean checkForReservedWord)

encodeString

public static java.lang.String encodeString(java.lang.String string)

isJavascriptAllowed

public static boolean isJavascriptAllowed(javax.faces.context.ExternalContext externalContext)

isRenderClearJavascriptOnButton

public static boolean isRenderClearJavascriptOnButton(javax.faces.context.ExternalContext externalContext)

isSaveFormSubmitLinkIE

public static boolean isSaveFormSubmitLinkIE(javax.faces.context.ExternalContext externalContext)

setJavascriptDetected

public static void setJavascriptDetected(javax.servlet.http.HttpSession session,
                                         boolean value)

isJavascriptDetected

public static boolean isJavascriptDetected(javax.faces.context.ExternalContext externalContext)

setOldViewId

public static void setOldViewId(javax.faces.context.ExternalContext externalContext,
                                java.lang.String viewId)

getOldViewId

public static java.lang.String getOldViewId(javax.faces.context.ExternalContext externalContext)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.