cancel
Showing results for 
Search instead for 
Did you mean: 

sharing data in the portal

Former Member
0 Kudos

Hi,

I want to share data between several iView (not all are in the same page). I think of using the HttpSession but the putValue and the getValue methods are deprecated.

please advise,

Thanks, Nir Marcu.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Remember that the different session object store the values once for every user.

If the value is the same for all users you should consider creating a service which stores the information.

Former Member
0 Kudos

use the getComponentSession() method from the IPortalComponentRequest object.

you should avoid working with HttpSession (or HttpRequest) directly. There are objects specifically created for the portal that act the same way.

And in the IPortalComponentSession object, you will find the putValue() method !

Regards,

xavier

Former Member
0 Kudos

He all,

I have a similar problem. I want to share beans between different components.

Is it possible to design an iview so that it can share session data with other iviews ?

Example: iviews1 forwards to iview2, user makes a selection in iview2, and now iview2 should return the selected data to exactly that iview1 instance from which it was called.

iview1 and iview2 are in different portal components ( so we can't use IPortalComponentSession)

Regards

Kerstin

Former Member
0 Kudos

You can use Portal Eventing to do that.

Xavier.

Former Member
0 Kudos

Yes, or use the HTTPSession (which you can get from the IPortalComponentSession). The HTTPSession has the same namespace for all portal components (therefore make sure you use distinct names, f.ex. com.company.portal.component.key).

Xavier: Do you now the persistence level of the client databag ? Can it be cleared by the SAP J2EE engine if it needs the memory ?

Former Member
0 Kudos

You can use getAttribute, setAttribute methods