on 05-17-2004 9:19 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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 ?
You can use getAttribute, setAttribute methods
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.