webtier@glassfish.java.net

Re: [webtier] Where does Glassfish store the JSF component tree state?

From: <webtier_at_javadesktop.org>
Date: Tue, 15 Sep 2009 14:08:15 PDT

Hi Ryan,

[b]The session object does not have key 'com.sun.faces.logicalViewMap'[/b] . 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


[b]Here is my code to print the objects in the session:[/b]
 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());
    }
[Message sent by forum member 'johnnyren' (johnnyren_at_yahoo.com)]

http://forums.java.net/jive/thread.jspa?messageID=364134