ICEfaces
  1. ICEfaces
  2. ICE-7091

MyFaces 2 causes full forms to be updated after first Ajax request

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 3.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2 MyFaces 2

      Description

      After a page is initially loaded, the first Ajax request will trigger a larger than necessary update due to the changing ViewState values in the hidden input fields. This will typically mean that the full form is always sent back as the first update.

        Issue Links

          Activity

          Hide
          Deryk Sinotte added a comment -

          Linking to the MyFaces 2 parent JIRA for general compatibility. While it doesn't technically fail (and therefore doesn't actually block MyFaces compatibility), the large initial update is not optimal.

          Show
          Deryk Sinotte added a comment - Linking to the MyFaces 2 parent JIRA for general compatibility. While it doesn't technically fail (and therefore doesn't actually block MyFaces compatibility), the large initial update is not optimal.
          Hide
          Deryk Sinotte added a comment -

          Full form updates caused by this issue mask the updates that are calculated by h:message and h:messages rendering.

          Show
          Deryk Sinotte added a comment - Full form updates caused by this issue mask the updates that are calculated by h:message and h:messages rendering.
          Hide
          Deryk Sinotte added a comment -

          I modified the DOMResponseWriter to use a similar strategy to what we do with Mojarra. That is, when MyFaces adds the ViewState elements, we identify it and store it for later removal. We allow the response to be written back (including all the ViewState elements) and then remove them from the DOM after. This way, they are not in the DOM when a DOM diff is done and don't trigger the larger updates.

          Show
          Deryk Sinotte added a comment - I modified the DOMResponseWriter to use a similar strategy to what we do with Mojarra. That is, when MyFaces adds the ViewState elements, we identify it and store it for later removal. We allow the response to be written back (including all the ViewState elements) and then remove them from the DOM after. This way, they are not in the DOM when a DOM diff is done and don't trigger the larger updates.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: