webtier@glassfish.java.net

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

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Tue, 15 Sep 2009 14:44:42 -0700

There's probably a custom StateManager in use then.

If I use a simple JSF application (no Seam), using similar logic as what
you've described below, I
see the key displayed in the log.


On 9/15/09 2:08 PM, webtier_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>