cancel
Showing results for 
Search instead for 
Did you mean: 

iView ( Bean lost data )

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi all,

SAP has released note 802015 about the different ways how to store data of a portal component. Please have a look.

Best regards,

Norbert Hamann

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Armin,

I am using application scope .

regds,

Anto

Former Member
0 Kudos

Hello,

The application scope for the jsp file...

But which scope/object are You using in the Dynpage (IPortalComponentContext) for storing the bean?

Walter

Former Member
0 Kudos

Hi,

depending on where you put the bean:

componentSession - depending on HttpSession timeout.

profile/context - subject to garbage collection & portal component cleanup.