Details
Description
When working on another issue I noticed that a single incoming update was logged on the client as being applied twice. I checked a couple of previous releases and this seems to be the case as far back as BETA2:
ICEfaces 2.1.0.BETA2 (comp-suite.war)
ICEfaces-3.0.0.RC1 (showcase.war)
ICEfaces 3 Trunk (showcase.war)
Using the ACE Showcase (e.g. ace:tooltip, change the effect using the dropdown menu), a single action produces one update and the following logging indicating that the update is applied twice:
[window] applied updates>>
update["j_idt66:tooltipEffectSelector"]:<select id="j_idt66:tooltipEffectSelecto....
update["j_idt66:j_idt96_content"]:<div class="ui-panel-content ui-widget-c....
update["dynamic-code-compat"]:<span id="dynamic-code-compat"></span>....
update["javax.faces.ViewState"]: 641204715261572547:3506558945429355219....
[window] applied updates>>
update["j_idt66:tooltipEffectSelector"]:<select id="j_idt66:tooltipEffectSelecto....
update["j_idt66:j_idt96_content"]:<div class="ui-panel-content ui-widget-c....
update["dynamic-code-compat"]:<span id="dynamic-code-compat"></span>....
update["javax.faces.ViewState"]: 641204715261572547:3506558945429355219....
ICEfaces 2.1.0.BETA2 (comp-suite.war)
ICEfaces-3.0.0.RC1 (showcase.war)
ICEfaces 3 Trunk (showcase.war)
Using the ACE Showcase (e.g. ace:tooltip, change the effect using the dropdown menu), a single action produces one update and the following logging indicating that the update is applied twice:
[window] applied updates>>
update["j_idt66:tooltipEffectSelector"]:<select id="j_idt66:tooltipEffectSelecto....
update["j_idt66:j_idt96_content"]:<div class="ui-panel-content ui-widget-c....
update["dynamic-code-compat"]:<span id="dynamic-code-compat"></span>....
update["javax.faces.ViewState"]: 641204715261572547:3506558945429355219....
[window] applied updates>>
update["j_idt66:tooltipEffectSelector"]:<select id="j_idt66:tooltipEffectSelecto....
update["j_idt66:j_idt96_content"]:<div class="ui-panel-content ui-widget-c....
update["dynamic-code-compat"]:<span id="dynamic-code-compat"></span>....
update["javax.faces.ViewState"]: 641204715261572547:3506558945429355219....
Activity
Deryk Sinotte
created issue -
Deryk Sinotte
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Assignee Priority | P1 | |
Assignee | Mircea Toma [ mircea.toma ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27078 | Tue Jan 03 14:20:37 MST 2012 | mircea.toma | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/core/src/main/javascript/application.js
|
Mircea Toma
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
The updates are not applied twice, just the update details are logged twice. When invoked the 'submitEventBroadcaster' function is returning a callback that will broadcast the submit events to a list of passed in callbacks. The function also logs the update details. Because 'submitEventBroadcaster' function is used in two places, but with a different list of callbacks, the log messages appear twice.
The solution applied was to factor out the received update logging into a separate function registered as callback with JSF bridge.