ICEfaces
  1. ICEfaces
  2. ICE-6021

Require bridge API for one-time JavaScript execution and focus mgmt

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: Bridge, Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2.0
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      It is useful to have the ability for server-side components, beans, etc. to have the bridge execute some JavaScript one time only, after the next DOM update is processed.

      In ICEfaces 1.8, there was a JavaScriptContext API that would support this. For ICEfaces 2.0, we've added a utility API for use by the Sparkle components (see ICE-5830), but this is for inserting a <script> node into the DOM, not executing some arbitrary JS one time only.

      So, it seems we require another API that would have the bridge execute some JS one-time.

      .addJavascriptCall(..)
      .requestFocus(...)

      etc.

        Issue Links

          Activity

          Hide
          Mircea Toma added a comment -

          Implemented utility API for evaluating JS code on the client. The new API is similar to the JavascriptContext but without extra baggage of focus management and effect queueing. The injected code will be rendered on page load or partial update.

          The signature of the method used to inject JS code looks like this:
          org.icefaces.util.JavaScriptRunner.runScript(FacesContext context, String code)

          Show
          Mircea Toma added a comment - Implemented utility API for evaluating JS code on the client. The new API is similar to the JavascriptContext but without extra baggage of focus management and effect queueing. The injected code will be rendered on page load or partial update. The signature of the method used to inject JS code looks like this: org.icefaces.util.JavaScriptRunner.runScript(FacesContext context, String code)

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: