ICEfaces
  1. ICEfaces
  2. ICE-10729

PropertyNotFoundException when dispose-window request issued before redirect

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P03
    • Fix Version/s: 4.1, EE-3.3.0.GA_P04
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      jsf2.x ICEfaces3.3 ICEfaces4

      Description

      Customer has a regression (from P02 where this worked). The backing bean is ViewScoped and the @WindowsDisposed annotation is used. They have a NavigationHandler as well as a list of Messages in the view that is controlled by this backing bean. (bean is attached to the support case). Once the navigation is handled, the List of messages is no longer found (PropertyNotFoundException). Changing the backing bean to WindowsScoped works in this case. In P01 and P02 this worked with no changes to the backing bean and leaving it in @ViewScoped with the @WindowsDisposed annotation.

      000 3 00 0000 2015-06-11 11:32:40.529 (JSFExceptionHandler:78) Error code: e3406fd1; Exception: javax.el.PropertyNotFoundException: /xhtml/messageTable.xhtml @15,69 value="#{messageQueuesBean.messageList}": The class 'org.icefaces.impl.application.WindowScopeManager$NOOPBean' does not have the property 'messageList'.

      ....
      same application code was in the Fedex patch for P02, but just changing jars to P03 and this exception is thrown. It appears to only be a problem with ViewScoped beans using @WindowsDisposed. If the customer changes the bean to WindowScoped, then it works fine (survives the redirect).
       
      Please also see the forum reference as a user has the same issue.

        Activity

        Hide
        Carmen Cristurean added a comment -

        Verified ICE-10257 attached test case on EE-3.3.0-maintenance r. 45754/ ICEfaces4 trunk r.45755 / Chrome43, IE11/ Mojarra && MyFaces JSF, and it passes.

        Show
        Carmen Cristurean added a comment - Verified ICE-10257 attached test case on EE-3.3.0-maintenance r. 45754/ ICEfaces4 trunk r.45755 / Chrome43, IE11/ Mojarra && MyFaces JSF, and it passes.
        Hide
        Mircea Toma added a comment -

        Propagate view scoped beans through navigation to avoid having them re-instantiated during the next lifecycle and also have the defined bean methods available. The beans are eventually discarded together with the view root.

        Show
        Mircea Toma added a comment - Propagate view scoped beans through navigation to avoid having them re-instantiated during the next lifecycle and also have the defined bean methods available. The beans are eventually discarded together with the view root.
        Hide
        Ken Fyten added a comment -

        Re-opened for multiple expiry issue as reported by QA on IF 4 trunk.

        Show
        Ken Fyten added a comment - Re-opened for multiple expiry issue as reported by QA on IF 4 trunk.
        Hide
        Mircea Toma added a comment -

        Previous comment was misplaced, the issue was re-open to fix double disposing of the view scoped beans observed in ICEfaces 4 trunk.

        Show
        Mircea Toma added a comment - Previous comment was misplaced, the issue was re-open to fix double disposing of the view scoped beans observed in ICEfaces 4 trunk.
        Hide
        Mircea Toma added a comment -

        Ported forward ICE-10257 changes to fix view scoped bean's double disposal.

        Show
        Mircea Toma added a comment - Ported forward ICE-10257 changes to fix view scoped bean's double disposal.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: