1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    3
    Vote Rating
    1
    charon is on a distinguished road

      0  

    Default Unanswered: [GXT3.0][ Does gxt3.0 contain the class of Registry

    Unanswered: [GXT3.0][ Does gxt3.0 contain the class of Registry


    after updating gxt to version 3.0, the code show the error class of Registry not found which is located in the package com.extjs.gxt.ui.client at version2. Does gxt3.0 contain the class of Registry? if didnt,what will replace it ?

  2. #2
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
    bhomass is on a distinguished road

      0  

    Default


    this is a pretty critical question. why doesn't any one answer it?

    what is the substitute in Gxt 3 for replacing the Registry class?

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    The 2.x Registry class is essentially a global, untyped map with string keys. This can be very handy for storing singletons, but one can very easily reproduce the exact same functionality as simply as just copying the concept and making your own. Not including headers and imports, the file only has about 50 lines of code - which includes whitespace, javadocs, and method declarations.

    In 3.x, we've removed Registry, the 2.x event model, and the ModelData itself - these all encouraged a style of programming that makes it very hard for developers to write consistently typed code - a change in the inheritance in one part of the app can cause runtime ClassCastException errors in another.

    Instead of the Registry, consider some kind of way to describe common instances, or how to obtain new objects across your app. One such way is through dependency injection (also known as inversion of control, or IoC). This can be done with the help of a tool like Gin, or can also be manually managed using something like the ClientFactory DI pattern used in many GWT examples.

    Some additional resources of DI/ClientFactory/Gin that you might find useful:
    http://stackoverflow.com/questions/1...-blob-monolith
    http://code.google.com/p/google-gin/
    https://developers.google.com/web-to...itiesAndPlaces (Specifically read the section on ClientFactory, but the whole article, as well as the two links on MVP, can be useful as some possible approaches for app design. These are all just some possible proposals though - none are considered to be the One True GWT Way.)

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi