Results 1 to 3 of 3

Thread: Use same Dispatcher with several modules

  1. #1
    Ext User
    Join Date
    Mar 2009
    Posts
    2
    Vote Rating
    0
      0  

    Default Use same Dispatcher with several modules

    Hi,
    I'd like to put several, undependent compiled widgets on my JSP and let them interact. Is there a way to access the same dispatcher from every module/widget?

  2. #2
    Ext JS Premium Member jadrake75's Avatar
    Join Date
    Sep 2008
    Posts
    108
    Vote Rating
    4
      0  

    Default

    Dispatcher is a singleton. Or do you have a page which has a few iFrames and in each iFrame is a separate GXT application? Can you explain your issue more? (ie. I use many modules in my application, but they are within a single Viewport, so it is the same "application").

  3. #3
    Ext User
    Join Date
    Mar 2009
    Posts
    2
    Vote Rating
    0
      0  

    Default

    There are several GXT Applications. They aren't located in different iframes, but each has its own EntryPoint and compiled javascript output embedded in page. Now the question is how to communicate, if widget1 calls Dispatcher.get() and next widget2 calls Dispatcher.dispatch() there's a nullpointer, what leads me to the conclusion every widget uses its own dispatcher, though events of widget2 are "disturbing" widget1 in some way, causing unexpected behaviour in history-navigation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •