[jboss-user] [JBoss Seam] - Re: Using Seam for porlet communication
jarkko@jab.fi
do-not-reply at jboss.com
Wed Sep 20 20:25:41 EDT 2006
Hmm. In org.jboss.seam.portlet.PortletSessionImpl.java it says
| public Object getAttribute(String key)
| {
| return session.getAttribute(key);
| }
|
| public void setAttribute(String key, Object value)
| {
| session.setAttribute(key, value);
| }
|
|
which according to the Javadoc http://docs.jboss.org/jbportal/spec/docs/javax/portlet/PortletSession.html#getAttribute(java.lang.String) gets/puts the attributes in PORTLET_SCOPE which is defined to be portlet private only. And the APPLICATION_SCOPE is portal "wide" scope.
Maybe in Seam we need new context APPLICATION_PORTLET_SCOPE (or PORTAL_SCOPE) that uses the Portlet APPLICATION_SCOPE for storage. ( http://docs.jboss.org/jbportal/spec/docs/javax/portlet/PortletSession.html#APPLICATION_SCOPE ). IMHO the portlet APPLICATION_SCOPE name is causing some naming conflits and should be renamed to PORTAL_SCOPE in the spec.
Or just simply hard code and change the PortletSessionImpl to always use the (portlet) APPLICATION_SCOPE.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973112#3973112
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973112
More information about the jboss-user
mailing list