ICEfaces
  1. ICEfaces
  2. ICE-10257

@WindowDisposed - ViewScoped bean constructor called on redirect

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.BETA, EE-3.3.0.GA_P02
    • Fix Version/s: 4.0, EE-3.3.0.GA_P03
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      All

      Description

      When using the @WindowDisposed annotation for a ViewScoped bean, this beans constructor is called when doing a redirect to a new page.

      Scenario:
       - TestBean - ViewScoped bean
       - PageBean - ViewScoped Bean

      When the page that uses TestBean is loaded the constructor is called as expected. This page has a commandButton which will do a redirect to the page that uses PageBean. On click of this button the TestBean constructor is called as well as the PageBean constructor.

      Removing the @WindowDisposed annotation prevents this additional call to the constructor.

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: