javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-957

ClientBehaviors are limited to render script for component events

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: Components/Renderers
    • Labels:
      None
    • Status Whiteboard:
      Hide

      size_medium importance_large

      Show
      size_medium importance_large

      Description

      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.

        Activity

        Hide
        alexsmirnov added a comment -

        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.

        Show
        alexsmirnov added a comment - 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.
        Hide
        Ed Burns added a comment -

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

        Show
        Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
        Hide
        Manfred Riem added a comment -

        Setting priority to Minor

        Show
        Manfred Riem added a comment - Setting priority to Minor

          People

          • Assignee:
            Unassigned
            Reporter:
            Mathias Werlitz
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: