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

          Ken Fyten created issue -
          Ken Fyten made changes -
          Field Original Value New Value
          Salesforce Case []
          Fix Version/s 2.0-Beta2 [ 10242 ]
          Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
          Assignee Priority P2
          Assignee Mircea Toma [ mircea.toma ]
          Ken Fyten made changes -
          Link This issue blocks ICE-4418 [ ICE-4418 ]
          Ken Fyten made changes -
          Assignee Priority P2 P1
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #22354 Thu Sep 16 04:46:50 MDT 2010 mircea.toma ICE-6021 Implemented utility API for evaluating JS code on client.
          Files Changed
          Commit graph MODIFY /icefaces2/trunk/icefaces/compat/core/src/main/java/com/icesoft/faces/context/CompatDOMPartialViewContext.java
          Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/context/DOMPartialViewContext.java
          Commit graph ADD /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/util/JavaScriptRunnerSetup.java
          Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/resources/META-INF/faces-config.xml
          Commit graph MODIFY /icefaces2/trunk/icefaces/compat/core/src/main/java/com/icesoft/faces/component/JavaScriptContextSetup.java
          Commit graph ADD /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/util/JavaScriptRunner.java
          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)
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #22363 Thu Sep 16 13:29:16 MDT 2010 mircea.toma ICE-6021 Move JavaScriptRunnerSetup into org.icefaces.impl.event package.
          Files Changed
          Commit graph DEL /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/util/JavaScriptRunnerSetup.java
          Commit graph ADD /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/JavaScriptRunnerSetup.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #22368 Thu Sep 16 15:19:52 MDT 2010 mircea.toma ICE-6021 Use only java 1.5 API.
          Files Changed
          Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #22369 Thu Sep 16 15:33:59 MDT 2010 mircea.toma ICE-6021 Rollback changes committed by mistake.
          Files Changed
          Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #22372 Fri Sep 17 08:49:24 MDT 2010 deryk.sinotte ICE-6021: remove reference to event class that was factored out
          Files Changed
          Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/resources/META-INF/faces-config.xml
          Ken Fyten made changes -
          Fix Version/s 2.0.0 [ 10230 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Priority P1

            People

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

              Dates

              • Created:
                Updated:
                Resolved: