Details
-
Type:
Task
-
Status: Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: EE-3.3.0.GA_P02, EE-4.0.0.GA
-
Fix Version/s: EE-4.1.0.GA, EE-3.3.0.GA_P04
-
Component/s: Framework
-
Labels:None
-
Environment:All
-
Assignee Priority:P2
-
Support Case References:Support Case #13404 - https://icesoft.my.salesforce.com/5007000001AfT9n
Description
In this scenario, an application opens many different views in new windows/tabs (1 view/tab). Once the number for the numberOfLogicalViews have been reached, views still open will now throw a ViewExpiredException when used by the user as this view is no longer in the logical view map.
Changing to a Window scoped bean doesn't have any changes. Also using the @WindowDisposed annotation on the View scoped bean does cause the bean to be disposed but it doesn't cause it to be removed from the map. If they were disposed and removed from the map this might help to alleviate this issue.
This does seem to be the expected JSF behavior of the view map and view scoped beans. This JIRA is intended to review this behavior to see if there is a bug in JSF or if there is something we can do with the ICEfaces window scope to help prevent this from happening.
Changing to a Window scoped bean doesn't have any changes. Also using the @WindowDisposed annotation on the View scoped bean does cause the bean to be disposed but it doesn't cause it to be removed from the map. If they were disposed and removed from the map this might help to alleviate this issue.
This does seem to be the expected JSF behavior of the view map and view scoped beans. This JIRA is intended to review this behavior to see if there is a bug in JSF or if there is something we can do with the ICEfaces window scope to help prevent this from happening.
Activity
Field | Original Value | New Value |
---|---|---|
Description |
In this scenario, an application opens many different views in new windows/tabs (1 view/tab). Once the number for the numberOfLogicalViews have been reached, views still open will now throw a ViewExpiredException when used by the user as this view is no longer in the logical view map.
Changing to a Window scoped bean doesn't have any changes. Also using the @WindowDisposed annotation on the View scoped bean does cause the bean to be disposed but it doesn't cause it to be removed from the map. This does seem to be the expected JSF behavior of the view map and view scoped beans. This JIRA is intended to review this behavior to see if there is a bug in JSF or if there is something we can do with the ICEfaces window scope to help prevent this from happening. |
In this scenario, an application opens many different views in new windows/tabs (1 view/tab). Once the number for the numberOfLogicalViews have been reached, views still open will now throw a ViewExpiredException when used by the user as this view is no longer in the logical view map.
Changing to a Window scoped bean doesn't have any changes. Also using the @WindowDisposed annotation on the View scoped bean does cause the bean to be disposed but it doesn't cause it to be removed from the map. If they were disposed and removed from the map this might help to alleviate this issue. This does seem to be the expected JSF behavior of the view map and view scoped beans. This JIRA is intended to review this behavior to see if there is a bug in JSF or if there is something we can do with the ICEfaces window scope to help prevent this from happening. |
Attachment | Case13404Example.war [ 19587 ] | |
Attachment | Case13404Example.zip [ 19588 ] |
Fix Version/s | 4.1 [ 11375 ] |
Fix Version/s | EE-3.3.0.GA_P04 [ 12270 ] |
Assignee | Mircea Toma [ mircea.toma ] | |
Assignee Priority | P2 [ 10011 ] |
Assignee Priority | P2 [ 10011 ] | |
Fix Version/s | EE-4.1.0.GA [ 12171 ] | |
Fix Version/s | 4.1 [ 11375 ] | |
Fix Version/s | EE-3.3.0.GA_P04 [ 12270 ] |
Fix Version/s | EE-3.3.0.GA_P04 [ 12270 ] |
Assignee Priority | P3 [ 10012 ] |
Assignee Priority | P3 [ 10012 ] | P2 [ 10011 ] |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Won't Fix [ 2 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Attached test case showing this behavior:
Steps:
Test Case 1 - Single search, open multiple results
1. Access TestView\testPage1.jsf. Keep this window/tab open.
2. Open results in new tabs, that will open TestView\testPage2.jsf. Do that for 11 times. You should have 12 tabs at the end of this.
3. Go back to the tab in Step 1, hit the "Click Next" button. "Server Internal Error" pops up. Backend console displays the ViewExpiredExceptionMessage.
Test Case 2 - Multiple search, open one result
1. Access TestView\testPage1.jsf. Keep this window/tab open.
2. Open one result in a new tab.
3. Go back to the tab in Step 1, and hit "Search" for 11 times.
4. Go back to the tab in Step 2, and hit "Click Me". "Server Internal Error" pops up. Backend console displays the ViewExpiredExceptionMessage.