ICEfaces
  1. ICEfaces
  2. ICE-7783

Action and Value Change Events are called multiple times for components using a component binding

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: EE-2.0.0.GA, 3.0
    • Fix Version/s: 3.0.1, EE-3.0.0.GA
    • Component/s: Framework, ICE-Components
    • Labels:
      None
    • Environment:
      All
    • Workaround Exists:
      Yes
    • Workaround Description:
      First step is to remove all component bindings. If this is not possible then switching to an action method instead of an actionListener seems to work better.

      Description

      If an ice:commandButton uses a component binding , the actionListener method can be called multiple times. The action method is always called only once.

      The same issue can be seen with an inputText component, the valueChangeListener is called multiple times with a component binding.

      It also looks like the more you interact with these components the more the listeners are called. First click of the button the AL is called twice, second click its called four times, and so on.

      This behavior can be seen in both a Window and Session scoped beans.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case running ICEfaces 3 and using a Session Scoped bean. Clicking on the buttons will update a counter depending on how many times the actions are called. With the input field, enter in a value to have the Value change event fired, there is a counter which will increment depending on how many times the method is called.

        Show
        Arran Mccullough added a comment - Attached test case running ICEfaces 3 and using a Session Scoped bean. Clicking on the buttons will update a counter depending on how many times the actions are called. With the input field, enter in a value to have the Value change event fired, there is a counter which will increment depending on how many times the method is called.
        Hide
        Ted Goddard added a comment -

        Since the same behavior is reproduced without ICEfaces, this is not an ICEfaces bug, and is evidently due to a change in behavior with JSF 2.0 vs 1.2.

        Show
        Ted Goddard added a comment - Since the same behavior is reproduced without ICEfaces, this is not an ICEfaces bug, and is evidently due to a change in behavior with JSF 2.0 vs 1.2.

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: