Even when i use the statement ArrayList myObjects2 = session.get("obj", PortletSession.APPLICATION_SCOPE) from another Portlet on the same page , i am not able to retreive my saved objects, because of the added prefix "jbp19367721"
After doing this, i want to retrieve my saved objects with the statement:
ArrayList<MyObjects> 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
I'm triying to retrieve my object from the portlet session with the statement:
session.getAttribute("obj", PortletSession.APPLICATION_SCOPE), but i still get a null object back, because the key of the object is not "obj", but "jbp11462467obj". I don't know why this key is prefixed (jbp11462467) in the PortletSession.
I found another forum topic, with a similar issue (http://www.jboss.org/index.html?module=bb&op=viewtopic&t=65630&view=previous). Unfortunately there was no answer. Is it perhaps an open bug in JBoss Portal 2.0 or 2.2.1) ? Does somebody have an idea about it?