[jboss-user] [JBoss Portal] - Re: Saving object in PortletSession
ckeswani
do-not-reply at jboss.com
Tue Jan 30 08:13:59 EST 2007
"herveminko" wrote : Hi guys,
|
| After doing this, i want to retrieve my saved objects with the statement:
| ArrayList myObjects2 = session.get("obj");
|
|
I imagine you've solved this by now, but just in case you haven't:
Since you stored in in APPLICATION_SCOPE you must retrieve it with APPLICATION_SCOPE, so to get the object back your code should look like
| session.getAttribute("obj", PortletSession.APPLICATION_SCOPE);
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008276#4008276
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008276
More information about the jboss-user
mailing list