Skip to Content
avatar image
Former Member

Communication between IViews on same page

Different ways for communication between IViews renderd on same page.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 16, 2004 at 04:29 PM

    (on behalf of Goran Jakovljevic)

    Hi

    I am wondering is there a way to communicate Java Bean between two IViews located on same page.

    I considered EPCF framework, but as I understood it it is only possible to communicate strings using this mechanizm. I am employing EPCF to refresh content of one IView when there is an event in other IView, but I need more. I tried using session scope for beans, but it is not working because session is uniquly identified by 3 parameters (one of them includes component ID). Putting bean in HTTPSession also didn't work.

    Other solution I considered was using background portal service referenced from both IViews to temporary store bean from one view so other one can get it. (This proposition has a problem of expiring beans -- to simplify - when to declare that temporary bean does not have to be stored any more).

    I want to transfer more complex data, and to avoid string parsing (by putting all data in one string). So, if there is a solution to this problem, please suggest it. (short code samples would be appreciated).

    Best regards,

    Goran

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello

      this is one of my biggest problems while im writing my bachelor thesis about the ep6.

      one of the possible solutions that i know is using the client databag and store the values of the first i view in a hidden field in the second i view and force the second iview to reload.

      the second would be to write a special service which can be used to exchange the data in the server side. this would allow you to exchaneg any java datatyp, but you have to take care of session management.

      I think this is one of the biggest problems when you try to port an application into the ep 6, like i just did.

      We need some kind of workset- or page-bean for data exchange, or a dedicated server eventing.

      Alexander

  • avatar image
    Former Member
    Jul 01, 2004 at 07:29 PM

    I am also trying to share complex information between two iview components on the same page. Also, does eventing work if the iViews are on diffrent pages ( like popup windows) ??

    Add comment
    10|10000 characters needed characters exceeded