Details
-
Type: Bug
-
Status: Closed
-
Priority: 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.
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.
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.