Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Ajax/JavaScript
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      685
    • Status Whiteboard:
      Hide

      size_large importance_large

      Show
      size_large importance_large

      Description

      Sometimes, the page author would like to cancel a client side event listener.

      currently, there is no way to do this - you would have to instead code the
      listening function to stub out if some value were set, instead, or overwrite the
      function with a noop. That's awkward.

      Instead, it would be desired that the listener be removed from the list of
      listeners that the JSF client library keeps.

      One way to do this would be to have the addListener function return a token, and
      have a separate, cancel(token) function which would remove the listener
      represented by that token.

        Activity

        Hide
        ganeshpuri added a comment -

        corrected target

        Show
        ganeshpuri added a comment - corrected target
        Hide
        Ed Burns added a comment -

        rogerk

        Show
        Ed Burns added a comment - rogerk
        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        rogerk added a comment -

        target

        Show
        rogerk added a comment - target
        Hide
        rogerk added a comment -

        re-target

        Show
        rogerk added a comment - re-target
        Hide
        rogerk added a comment -

        For now re-target for 2.2.
        If time permits may revisit for 2.1.

        Show
        rogerk added a comment - For now re-target for 2.2. If time permits may revisit for 2.1.
        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        werpu12 added a comment -

        The token approach is not needed, a client which registers a listener should always know the function. I guess a simple remove listener should be enough.
        so that we have jsf.ajax.addListener and jsf.ajax.removeListener.
        It is as simple as that and can be easily implemented.

        Show
        werpu12 added a comment - The token approach is not needed, a client which registers a listener should always know the function. I guess a simple remove listener should be enough. so that we have jsf.ajax.addListener and jsf.ajax.removeListener. It is as simple as that and can be easily implemented.
        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:
            driscoll
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: