[JAVASERVERFACES_SPEC_PUBLIC-957] ClientBehaviors are limited to render script for component events Created: 01/Apr/11  Updated: 01/Aug/14

Status: Open
Project: javaserverfaces-spec-public
Component/s: Components/Renderers
Affects Version/s: 2.2
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Mathias Werlitz Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Status Whiteboard:

size_medium importance_large


ClientBehaviors are currently limited to render script only for events defined by the component.
Sometimes a behavior may require to "initialize" and therefore render script that is directly executed on the client. ClientBehaviors could be extended to allow rendering of an own <script> block (e.g. for initialization before the event is triggered by the user) outside of the HTML event handler of the UI component.

Comment by alexsmirnov [ 13/Apr/11 ]

In the common case, Behavior has to render these scripts outside of component to avoid possible markup problems. In the RichFaces, I've created 'JavaScriptService' that allows deffered rendering for scripts: http://alexsmirnov.wordpress.com/2011/03/24/richfaces-javascript-service/
Probably, it would be nice to have similar service in the JSF core.

Comment by Ed Burns [ 01/Aug/14 ]

Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

Comment by Manfred Riem [ 01/Aug/14 ]

Setting priority to Minor

Generated at Fri Feb 24 07:34:04 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.