Details
-
Type: Bug
-
Status: Closed
-
Priority: 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
-
Assignee Priority:P1
-
Support Case References:Support Case #13033 - https://icesoft.my.salesforce.com/5007000000nOEak
-
Workaround Exists:Yes
-
Workaround Description:Remove the @WindowDisposed annotation
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.
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.
Attached test case that shows the issue. Note: The icefaces-ee, icefaces-ee-ace, and icefaces-ee-compat jars need to be added back into war file to run.
Steps are as mentioned in the original case description.