ICEfaces
  1. ICEfaces
  2. ICE-11268

ace:colorEntry dynamic example causes duplicate update to client/browser

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: EE-4.2.0.GA
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ace tabSet
    • Assignee Priority:
      P2

      Description

      When using the dynamic swatches example in showcase (there are three examples for ace:colorEntry-> Swatches each in a tabPane, the dynamic example is in the third or last tabPane):-
      choose up to 4 colors and click on CreateSwatch button.
      a new colorEntry component appears with the Swatch created from the up to 4 input colorEntry components previously.
      Choose a color and it shows the selected color as it should.
      Click on "Reset" button and perform the same steps again (choose different or more or less colors but make sure the color is different than the last one chosen or the value change will not fire!)>
      Create new swatch
      Now choose a color from the new swatch created and a response containing the update returns from the server and not only is the ace:colorEntry component updated, but a duplicate is created too.

      I'll attach an screenshot, but tried, ace:tabPane cache="none" as well as various attributes on the ace:tabSet. Tried tabSetProxy with forms within the tabSet, ace:ajax with various execute and render values. Replaced c:forEach with individual components.....
      still get the update duplicated into the client.

      After commenting out the ace:tabSet and ace:tabPanes, I was able to reproduce the same issue. After reload of the page, the duplicate disappears.... leading me to wonder if the original markup should be destroyed before a re-render can occur in some cases by the javascript(?)

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51396 Thu Mar 30 09:30:20 MDT 2017 mircea.toma ICE-11268 Assign an ID attribute value for the swatch markup that does not coincide with the ID of the root element.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/colorentry/ColorEntryRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51308 Fri Mar 10 15:50:03 MST 2017 judy.guglielmin ICE-11268 backed out change to data hashcode since the domdiff is causing the script to not be rendered without it.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/colorentry/ColorEntryRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51303 Thu Mar 09 15:40:42 MST 2017 judy.guglielmin ICE-11268 fixed markup to remove extra hashcode span which was causing extra update to client on dynamic update of page.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/colorentry/ColorEntryRenderer.java

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: