Hi ,
I am using jspdynpage(application scope) and stored all the values in bean.i have 3 iView page.i passed some values from iview1
->2
-->3. if i am not doing anything for more than 5 mins in my 3rd iView page and again go back to iView page 2 i lost alost all my bean values.so i am getting null pointer exception(portal runtime error).
if i play around continously in all 3 iViews , i didnt get any error.
is there any reason my bean lost data?
regds,
Anto.
Hi!
I had the same Problem using "Context" and "application" scope. I also tried "Profile", "Request" and "Session".
"Session" worked best => nothing gets lost !
IPortalComponentSession componentSession = componentRequest.getComponentSession();
STORE:
componentSession.putValue("mybean", mybean);
GET:
mybean = (BeanClass)componentSession.getValue("mybean");
In the JSP:
<jsp:useBean id="mybean" scope="session" class="com.ecs.cfr.bean.BeanClass" />
Regards Christian
Add a comment