This content has been marked as final.
Show 1 reply
-
1. Re: can numberOfViews be changed at runtime
mp911de Jul 18, 2011 1:55 AM (in response to javatwo)Hi Dave,
if you use Mojarra, take a look at com.sun.faces.renderkit.ServerSideStateHelper. This class stores the numberOfViews. There should be a LRUMap (com.sun.faces.util.LRUMap) in your session (com.sun.faces.renderkit.ServerSideStateHelper.LogicalViewMap). When you want to change the number of views, try to get and modify the ServerSideStateHelper and shift contents from the old LRUMap to a new LRUMap which is sized to your new numberOfViews.
Best regards,
Mark