Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Beta2
-
Fix Version/s: 2.0.1
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ACE pushbutton
Description
There's an issue with the PushButton component in that the updateProperties method is never called when an update to the pushButton is sent.
I've found the doUpdate method call in jsf.js where updates are applied to the elements. This method gets called twice, once for each <update> element in the payload.
There is an issue with the id in the updateProperties call, which is clientId, not matching the id of the button in the original markup, which is clientId + "_button" This causes the doUpdate method to throw a javascript Error, and the script update is ignored.
But changing the id of the button doesn't work because it seems like the original span hierarchy is being replaced with just the button, which makes the script node unable to find the enclosing div. It's a little unclear in there as its difficult to debug jsf.js as its formatted all in one line in the javascript debugger.
I think the solution is to correct the ids of the elements, and apply the update at the right level.
I've found the doUpdate method call in jsf.js where updates are applied to the elements. This method gets called twice, once for each <update> element in the payload.
There is an issue with the id in the updateProperties call, which is clientId, not matching the id of the button in the original markup, which is clientId + "_button" This causes the doUpdate method to throw a javascript Error, and the script update is ignored.
But changing the id of the button doesn't work because it seems like the original span hierarchy is being replaced with just the button, which makes the script node unable to find the enclosing div. It's a little unclear in there as its difficult to debug jsf.js as its formatted all in one line in the javascript debugger.
I think the solution is to correct the ids of the elements, and apply the update at the right level.
Issue Links
- blocks
-
ICE-6352 Changes to Component inner hierarchy does not always update javascript
- Closed
The update needs to be applied for the dynamic attributes to change