ICEfaces
  1. ICEfaces
  2. ICE-10524

Problem with PartialStateSaving and component binding.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P02, 4.0
    • Fix Version/s: EE-4.0.0.GA, EE-3.3.0.GA_P03, 4.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      jsf 2 icefaces

      Description

      See attached sample app to reproduce. I have tested it with 3.3.0 open source (easier to build as it's maven-built) as well as 3.3.0.GA_P02.
      The sample app basically has a page with 2 links.
          <h:form id="frm">
              <h:commandLink value="Add component to tree"
                             actionListener="#{requestBean.addComponent}"/>
              <br/>
              <h:commandLink value="Trigger lifecycle"
                             actionListener="#{requestBean.doNothing}"/>
              <br/>
              <h:panelGroup id="pgrp" binding="#{requestBean.group}">
              </h:panelGroup>
          </h:form>

      One link will dynamically add an HtmlOutputText component to an HtmlPanelGroup. the other link just triggers a jsf lifecycle.

      If you remove the icefaces jar from the war, with PartialStateSaving set to true (default anyways), then the HtmlPanelGroup state will continue to add another HtmlOutputText when you click on a link. With the icefaces jar, you only ever get the last HtmlOutputText component and if you trigger a new jsf lifecycle, it clears all state of the HtmlPanelGroup.
      The only way to maintain state with the icefaces jar is to set PartialStateSaving to false in web.xml:-
         <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
              <param-value>false</param-value>
      and this is inconsistent with how JSF is behaving.
      Customer has suggested a fix. (see diff attached).

        
         
      1. state_saving.patch
        2 kB
        Judy Guglielmin

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44261 Wed Mar 18 14:47:07 MDT 2015 mircea.toma ICE-10524 Verified and then applied fix recommended by customer in support case #13323.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: