ICEfaces
  1. ICEfaces
  2. ICE-4418

JavaScript injection functionality

    Details

      Description

      We need to determine the best course for the various use cases. Where JSF 2.0 provides a standard mechanism, we should be using that. Otherwise, we'll need our own strategy. The components are currently using the JavaScriptContext to do a lot of the heavy lifting:

      JavascriptContext?.focus(..);
      JavascriptContext?.includeLib..); this should be replaced with use of the resource API where you can declare resources.
      JavascriptContext?.applicationFocus(..);
      JavascriptContext?.addJavascriptCall(..)

      There should be a JSF 2 API for script injection that can be used for many things. Between this and the resource dependency handling (either JSF 2.0 standard or our own as the case may be), we should be able to all of the required usages.

        Issue Links

          Activity

          Deryk Sinotte created issue -
          Ken Fyten made changes -
          Field Original Value New Value
          Salesforce Case []
          Fix Version/s 2.0-Beta [ 10231 ]
          Assignee Mark Collette [ mark.collette ]
          Ken Fyten made changes -
          Link This issue is duplicated by ICE-5114 [ ICE-5114 ]
          Ken Fyten made changes -
          Assignee Mark Collette [ mark.collette ] Ken Fyten [ ken.fyten ]
          Hide
          Mircea Toma added a comment -

          [04/06/10 1:56:54 AM] Deryk Sinotte: ScriptEvaluator.insertScript()
          [04/06/10 2:00:57 AM] Deryk Sinotte: Focus management should be separate API that uses JS insertion utility.
          [04/06/10 2:01:31 AM] Deryk Sinotte: ScriptEvaluator.appendScript()?
          [04/06/10 2:02:04 AM] Deryk Sinotte: Current JSF script evaluation only works on postback.
          [04/06/10 2:04:51 AM] Deryk Sinotte: Special script block that always there and treated in a certain way.
          [04/06/10 2:05:06 AM] Deryk Sinotte: Can possibly shrink to nothing in certain situations.

          Show
          Mircea Toma added a comment - [04/06/10 1:56:54 AM] Deryk Sinotte: ScriptEvaluator.insertScript() [04/06/10 2:00:57 AM] Deryk Sinotte: Focus management should be separate API that uses JS insertion utility. [04/06/10 2:01:31 AM] Deryk Sinotte: ScriptEvaluator.appendScript()? [04/06/10 2:02:04 AM] Deryk Sinotte: Current JSF script evaluation only works on postback. [04/06/10 2:04:51 AM] Deryk Sinotte: Special script block that always there and treated in a certain way. [04/06/10 2:05:06 AM] Deryk Sinotte: Can possibly shrink to nothing in certain situations.
          Hide
          Mircea Toma added a comment -

          [04/06/10 2:08:28 AM] Ken Fyten: Keep JavascriptContext as-is for compat
          [04/06/10 2:08:53 AM] Ken Fyten: New API for IF 2.0, just inserts JS (no focus, no includeLib)
          [04/06/10 2:09:05 AM] Ken Fyten: IF 2.0 focus apis may be a component feature...

          Show
          Mircea Toma added a comment - [04/06/10 2:08:28 AM] Ken Fyten: Keep JavascriptContext as-is for compat [04/06/10 2:08:53 AM] Ken Fyten: New API for IF 2.0, just inserts JS (no focus, no includeLib) [04/06/10 2:09:05 AM] Ken Fyten: IF 2.0 focus apis may be a component feature...
          Deryk Sinotte made changes -
          Link This issue blocks ICE-5802 [ ICE-5802 ]
          Ken Fyten made changes -
          Salesforce Case []
          Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
          Assignee Ken Fyten [ ken.fyten ] Mircea Toma [ mircea.toma ]
          Mircea Toma made changes -
          Link This issue depends on ICE-5830 [ ICE-5830 ]
          Mircea Toma made changes -
          Link This issue depends on ICE-5830 [ ICE-5830 ]
          Mircea Toma made changes -
          Link This issue is duplicated by ICE-5830 [ ICE-5830 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21817 Tue Jun 29 09:00:43 MDT 2010 mircea.toma ICE-5830, ICE-4418 Introduce utility class for writing script markup and code.
          Files Changed
          Commit graph ADD /icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/render/ScriptWriter.java
          Hide
          Mircea Toma added a comment -

          Fixed by ICE-5830.

          Show
          Mircea Toma added a comment - Fixed by ICE-5830 .
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Security Private [ 10001 ]
          Ken Fyten made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
          Assignee Mircea Toma [ mircea.toma ]
          Ken Fyten made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Fix Version/s 2.0-Beta2 [ 10242 ]
          Fix Version/s 2.0-Beta1 [ 10231 ]
          Resolution Duplicate [ 3 ]
          Ken Fyten made changes -
          Link This issue depends on ICE-6021 [ ICE-6021 ]
          Ken Fyten made changes -
          Resolution Duplicate [ 3 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Assignee Mircea Toma [ mircea.toma ]
          Hide
          Mircea Toma added a comment -

          Resolved by ICE-6021 and ICE-5881 fixes.

          Show
          Mircea Toma added a comment - Resolved by ICE-6021 and ICE-5881 fixes.
          Mircea Toma made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s 2.0.0 [ 10230 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Deryk Sinotte
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: