Results 1 to 5 of 5

Thread: Use of Registry

  1. #1

    Question Use of Registry

    Hi All,

    I am fairly new to GXT so apologies for what might be a trivial question.

    What is the main use of the Regisrty is gxt projects?


    I was hoping to use it as following:

    When the application loads various calls are made to a proxy server via async calls to load data to Lists.
    Each list would be registered with a unique name.

    Meanwhile the client is loading and I want various grids to be tied to the lists in the registry.

    Therefore, should any change in list in the registry happen - the grid will also reflect this change.


    Can the registry be used in such a way?
    Or what would the best way for multple components to reference the same lists of data and to reflect any changes that may occur?

    I hope this explanation makes sense.


    Thanks!

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    You can use the Registry to simple safe references you need access somewhere else. Normaly if you use it, something is wrong designed in your app.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    And no. Simple changing a List on the registry wont change anything. You need to modify the stores bound to the grids.

  4. #4

    Default

    Perhaps, if the registry is not the right way to go, you can advise on the best way to achieve what I'm aiming for.

    When the application loads it fires off some asynchronous calls to a webservice for data.

    My application contains multiple grids and charts.

    When the data request callback executes (typically after the UI is rendered) it processes the data and I want any grid or chart interested in that data to be refreshed with the data that was returned.

    Ideally I don't want the callback function to have to know which grids/charts are wanting the data.


    Is there a good way to achieve this?

  5. #5
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    You would design it as in a real java app for example. There are design patters like MVP or MVC that will really help you with this.

Similar Threads

  1. Registry usage
    By methodinsane in forum Ext GWT: Help & Discussion (1.x)
    Replies: 6
    Last Post: 16 Oct 2013, 11:13 PM
  2. FormBinding with Registry
    By fspab in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 5 Jun 2009, 5:01 AM
  3. Registry weirdness
    By rian.k in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 12 May 2009, 3:25 AM
  4. Question about Registry
    By nyklogistics in forum Sencha GXT Q&A
    Replies: 3
    Last Post: 18 Aug 2008, 7:20 PM
  5. Registry Problem
    By muneender in forum Community Discussion
    Replies: 4
    Last Post: 6 Aug 2008, 10:59 PM

Posting Permissions

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