Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha2
-
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.
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
- duplicates
-
ICE-4418 JavaScript injection functionality
-
- Closed
-
Done. It is now org.icefaces.component.utils.ScriptWriter.