ICEfaces
  1. ICEfaces
  2. ICE-2047

ViewRoot may be stale under standardRequestScope

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.6
    • Fix Version/s: 2.0-Alpha3
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEfaces 1.6

      Description

      The standardRequestScope mode of ICEfaces causes request scope to be cleared for Ajax requests as well as full page requests. Another facet of this same behavior is ViewRoot caching performed by ICEfaces. This caching likely reduces latency, but can interfere with, for instance, Seam Page scope. We should consider whether standardRequestScope should also disable ViewRoot caching (another option is to control ViewRoot caching with a specific parameter).

      Note, however that JSF 1.1 incorrectly handles multiple views onto the same page. This has been improved in JSF 1.2 : (Jacob Hookum in JSR-314 Data Binding discussion)

      Client-Side statesaving, this has always worked fine, but for server-side statesaving, the viewId returned isn't just a token for the page resource, it's the page resource plus a counter. So each request gets its own counter for the javax.faces.ViewState value (view:432:1, view:432:2, view:432:3, ...)

        Activity

        Hide
        Ted Goddard added a comment -

        The desired fix is to build the component tree using native JSP or facelet mechanism. Any caching of the component tree should be performed by the StateManager.

        Show
        Ted Goddard added a comment - The desired fix is to build the component tree using native JSP or facelet mechanism. Any caching of the component tree should be performed by the StateManager.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: