webtier@glassfish.java.net

Logical views VS actual views in JSF 2.0

From: <forums_at_java.net>
Date: Fri, 23 Sep 2011 11:14:55 -0500 (CDT)

 Hi.

I'm trying to watch views, which are created during web application browsing.
I set the following parameters in web.xml:

<context-param> <param-name>com.sun.faces.numberOfLogicalViews</param-name>
<param-value>10</param-value> </context-param> <context-param>
<param-name>com.sun.faces.numberOfViewsInSession</param-name>
<param-value>5</param-value>
And analyzing the session states for views. JSF has the following hierarchy:

logicalViews -> actual views

To my understanding the logical view is mapped on real view (e.g. /page.jsf)
and should contain 5 real views for this address. So, page /secondPage.jsf
will have its own LRU map of views (not more than 5).

But in fact I see, that every new request for /page.jsf creates new logical
view with only one actual view in it. So, if I open 11 tabs with /page.jsf, I
recieve the logical views map with 10 members. Each member - is one actual
view. Thus, any postback on the first view results in ViewExpiredException.
Why?? 

Can anyone explain to me the real meaning of logical-actual views.

Thanks, Anton.


--
[Message sent by forum member 'bitec']
View Post: http://forums.java.net/node/846493