ICEfaces
  1. ICEfaces
  2. ICE-5830

New JavaScript context API for adding Component JavaScript to the DOM

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 2.0, Sparkle component platform
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      Currently, Sparkle components are "manually" rendering their Script tags inside a <SPAN> tag in the renderer. Since this is a very common requirement for the component, Ted suggests we consider using a bridge API to render the script in a span instead, such as JavaScriptContext, instead of rendering the JS Spans directly in the comp. renderer. \

      This may require adding APIs to support the req. of the components in terms of timing of execution of the JS, including detection of whether the component has changed. At a minimum, the rendering of the embedded SPAN tag + JS tag should be factored into a utility method.

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21876 Thu Jul 08 15:56:34 MDT 2010 judy.guglielmin update for ICE-5831 and ICE-5830
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/sparkle/component/src/org/icefaces/component/menubutton/MenuButtonRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21868 Thu Jul 08 12:11:15 MDT 2010 judy.guglielmin ICE-5875 updates for ICE-5830 and 5831 as 5805 already done and 5832 is not applicable for this component
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/sparkle/component/src/org/icefaces/component/pushbutton/PushButtonRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21861 Wed Jul 07 15:59:19 MDT 2010 yip.ng ICE-5830: New JavaScript context API for adding Component JavaScript to the DOM.
          Files Changed
          Commit graph DEL /icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/render/ScriptWriter.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21860 Wed Jul 07 15:50:52 MDT 2010 yip.ng ICE-5830: New JavaScript context API for adding Component JavaScript to the DOM.
          Files Changed
          Commit graph ADD /icefaces/scratchpads/sparkle/component/src/org/icefaces/component/utils/ScriptWriter.java
          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

            People

            • Assignee:
              yip.ng
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: