ICEfaces
  1. ICEfaces
  2. ICE-10411

Incorrect lazyWindowScope default behavior

    Details

    • Assignee Priority:
      P2
    • Support Case References:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Set the param manually:

          <context-param>
              <param-name>org.icefaces.lazyWindowScope</param-name>
              <param-value>false</param-value>
          </context-param>
      Show
      Set the param manually:     <context-param>         <param-name>org.icefaces.lazyWindowScope</param-name>         <param-value>false</param-value>     </context-param>

      Description

      As per the Wiki docs for lazyWindowScope (http://www.icesoft.org/wiki/display/ICE/lazyWindowScope):

      "Please note that if the view scope map contains any view scoped beans, org.icefaces.lazyWindowScope is not enabled by default."

      This indicates that if you have View scoped beans that org.icefaces.lazyWindowScope should be false by default. This is not the case as it is logged as the following:

      org.icefaces.lazyWindowScope: true [default]

      Also when using the @AllWindowsClosed annotation on a Session Scoped bean, this is not called as it needs Window scoped beans or lazyWindowScope=false.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that shows the incorrect behavior.

        To reproduce:

        • Load welcomeICEfaces.jsf
        • Close the window, there should be a log indicating that the @AllWindowsClosed method is called but this is not the case.
        Show
        Arran Mccullough added a comment - Attached test case that shows the incorrect behavior. To reproduce: Load welcomeICEfaces.jsf Close the window, there should be a log indicating that the @AllWindowsClosed method is called but this is not the case.
        Hide
        Mircea Toma added a comment -

        The Wiki docs for lazyWindowScope ( http://www.icesoft.org/wiki/display/ICE/lazyWindowScope ) is not describing clear enough the behaviour. Updated the docs to reflect current behaviour.

        Show
        Mircea Toma added a comment - The Wiki docs for lazyWindowScope ( http://www.icesoft.org/wiki/display/ICE/lazyWindowScope ) is not describing clear enough the behaviour. Updated the docs to reflect current behaviour.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: