org.icefaces.util

## Class JavaScriptRunner

- java.lang.Object
- - org.icefaces.util.JavaScriptRunner

-     public class JavaScriptRunner
      extends java.lang.Object

  Utility API for evaluating Javascript code on the client.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JavaScriptRunner()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `collateScripts(javax.faces.context.FacesContext context)`
    `static java.lang.String` | `escapeJavaScript(java.lang.String str)`
    `static void` | `runScript(javax.faces.context.FacesContext context, java.lang.String script)` Send immediately Javascript code to the client for evaluation and execution.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JavaScriptRunner

          public JavaScriptRunner()

  - ### Method Detail

    - #### runScript

          public static void runScript(javax.faces.context.FacesContext context,
                                       java.lang.String script)

      Send immediately Javascript code to the client for evaluation and execution.
      Parameters:
        `context` - the current FacesContext
        `script` - the Javascript code

    - #### collateScripts

          public static java.lang.String collateScripts(javax.faces.context.FacesContext context)

    - #### escapeJavaScript

          public static java.lang.String escapeJavaScript(java.lang.String str)

Copyright 2025 ICEsoft Technologies Canada, Corp. All Rights Reserved.