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
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Won't Fix [ 2 ] |
| Assignee Priority | P3 [ 10012 ] | P2 [ 10011 ] |
| Assignee Priority | P3 [ 10012 ] |
| Fix Version/s | EE-3.3.0.GA_P04 [ 12270 ] |
| 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 ] |
| Assignee | Mircea Toma [ mircea.toma ] | |
| Assignee Priority | P2 [ 10011 ] |
| Fix Version/s | EE-3.3.0.GA_P04 [ 12270 ] |
| Fix Version/s | 4.1 [ 11375 ] |
| Attachment | Case13404Example.war [ 19587 ] | |
| Attachment | Case13404Example.zip [ 19588 ] |
| 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. |
Debugging the test application confirms the disconnect observed between the view scoped bean instance limit and view scope map limit. This seems to be an issue that Mojarra has acknowledged, see https://java.net/jira/browse/JAVASERVERFACES-4015 .
To workaround this Mojarra issue the values of com.sun.faces.numberOfLogicalViews and com.sun.faces.application.view.activeViewMapsSize context parameters should always be equal.
In use cases where the memory consumption is too high (due to too many view scoped bean instances) request scoped beans can be used instead coupled with request parameters set by f:param (see example: http://www.mkyong.com/jsf2/jsf-2-param-example/ ).