javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2090

Partial state saving issue using convertDateTime with ViewScope

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Incomplete
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: view handling
    • Labels:
      None

      Description

      If you have a f:convertDateTime's timezone bound to a view scoped bean, the bean will be recreated on every request.

      After a short debugging, I get out, if the timezone is bound, a new ViewMap will be created before restoreView is called on UIViewRoot. If it is not bound, restoreView will be called first -> all works fine.

      Workaround:
      <context-param>
      <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
      <param-value>false</param-value>
      </context-param>

      I've attached a minimal project, that reproduces the error.

        Activity

        Hide
        Manfred Riem added a comment -

        Can you please verify if this is still an issue on the latest 2.1 release?

        Show
        Manfred Riem added a comment - Can you please verify if this is still an issue on the latest 2.1 release?
        Hide
        Manfred Riem added a comment -

        Lowering priority because of no response

        Show
        Manfred Riem added a comment - Lowering priority because of no response
        Hide
        Manfred Riem added a comment -

        Lowering priority because of no response

        Show
        Manfred Riem added a comment - Lowering priority because of no response
        Hide
        Manfred Riem added a comment -

        Closing because of inactivity

        Show
        Manfred Riem added a comment - Closing because of inactivity

          People

          • Assignee:
            Unassigned
            Reporter:
            dreske
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: