ICEfaces
  1. ICEfaces
  2. ICE-7620

Updates are being applied twice

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.RC2
    • Fix Version/s: 3.0
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      ICEfaces 3
    • Assignee Priority:
      P1

      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....

        Activity

        Hide
        Mircea Toma added a comment -

        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.

        Show
        Mircea Toma added a comment - 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.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: