ICEfaces
  1. ICEfaces
  2. ICE-6643

WindowAndViewIDSetup and FormSubmit: Event handlers cause duplicate components

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      JBoss 5.1
      JSF 2.1
      Portlet-Faces-Bridge 2.0.0 BETA4
    • Affects:
      Sample App./Tutorial
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Please add a

      if (event instanceof PostAddToViewEvent) {
      <original source>
      }

      to the "processEvent(SystemEvent event)"- Method.
      Show
      Please add a if (event instanceof PostAddToViewEvent) { <original source> } to the "processEvent(SystemEvent event)"- Method.
    • Community Contribution:
      Yes

      Description

      While executing an AJAX-Request with a full render (by navigation-case), the components in the event handlers are to be added a second time.
      This results from the Listener to handle the event twice.
      1. ICE-6643-2.patch
        3 kB
        Deryk Sinotte
      2. Patch - Icefaces_Events.patch
        14 kB
        Christian Heike
      3. Patch - Icefaces_Events.patch
        13 kB
        Christian Heike

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24228 Wed Mar 23 15:35:09 MDT 2011 deryk.sinotte ICE-6643: made same adjustments to the PortletUtil of ACE showcase as was done to compat Component Showcase due to changes in PortletFaces bridge
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/compat/component-showcase-portlets/src/main/java/org/icefaces/application/showcase/util/PortletUtil.java
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/ace/showcase-portlet/src/main/java/org/icefaces/portlet/PortletUtil.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24213 Mon Mar 21 16:06:28 MDT 2011 deryk.sinotte ICE-6643: adjusted PortletUtil to use simpler code due to changes in PortletFaces bridge
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/compat/component-showcase-portlets/src/main/java/org/icefaces/application/showcase/util/PortletUtil.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24202 Fri Mar 18 16:04:22 MDT 2011 ted.goddard added facesContext guard attribute against duplicates (ICE-6643)
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/FormSubmit.java
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/WindowAndViewIDSetup.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24200 Fri Mar 18 14:49:32 MDT 2011 ted.goddard reverting due to regression (ICE-6643)
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/FormSubmit.java
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/WindowAndViewIDSetup.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24188 Thu Mar 17 12:53:14 MDT 2011 deryk.sinotte ICE-6643: previous failures may have been related to JavaScript minification so putting the original fix back in
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/FormSubmit.java
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/WindowAndViewIDSetup.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24187 Thu Mar 17 11:46:51 MDT 2011 deryk.sinotte ICE-6643: reverting fix as incomplete because sometimes only RESTORE_VIEW is executed with the PostAddToViewEvent
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/FormSubmit.java
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/WindowAndViewIDSetup.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24186 Thu Mar 17 11:26:27 MDT 2011 deryk.sinotte ICE-6643: PostAddToViewEvent adding components multiple times, check to ensure we only do it in render phase
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/FormSubmit.java
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/WindowAndViewIDSetup.java

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Christian Heike
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: