This content has been marked as final.
Show 4 replies
-
1. Re: Where does Seam store the JSF component tree state?
gus888 Sep 10, 2009 5:01 PM (in response to johnnyren)Any expert can give a help on this issue? I also want to know where PAGE scoped components are saved. Do PAGE scoped components consume the same memory as SESSION scoped components? Thanks a lot in advance.
-
2. Re: Where does Seam store the JSF component tree state?
johnnyren Sep 10, 2009 5:12 PM (in response to johnnyren)Page scoped components are saved in the JSF component tree. Session scoped components are saved in http session. The question is that where JSF componenet tree saved in memory? How much memory is used?
-
3. Re: Where does Seam store the JSF component tree state?
johnnyren Sep 15, 2009 11:18 PM (in response to johnnyren)Someone told me that it is saved in the session under the key 'com.sun.faces.logicalViewMap'. But I can’t find this key from the session object.
There are seven key objects in the session. They are:
org.jboss.seam.security.credentials
org.jboss.seam.web.session
org.jboss.seam.core.conversationEntries
org.jboss.seam.international.localeSelector
org.jboss.seam.security.rememberMe
javax.faces.request.charset
org.jboss.seam.security.identity
Here is my code to print the objects in the session:
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
HttpServletRequest request = (HttpServletRequest)externalContext.getRequest();
HttpSession session=request.getSession();
Enumeration e=session.getAttributeNames();
while ( e.hasMoreElements() ) {
System.out.println(e.nextElement());
}
What is going on? -
4. Re: Where does Seam store the JSF component tree state?
jkronegg Sep 16, 2009 8:21 AM (in response to johnnyren)For Sun JSF RI, the 'logicalViewMap' is managed by the StateManagerImpl class.