Skip to Content
author's profile photo
Former Member

sharing data in the portal

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on May 17, 2004 at 08:32 AM

    You can use getAttribute, setAttribute methods

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 25, 2004 at 10:04 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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 ?

  • author's profile photo
    Former Member
    Posted on May 26, 2004 at 04:56 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded