Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-2328 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    22
    Vote Rating
    0
    zaku is on a distinguished road

      0  

    Default Store and ModelKeyProvider

    Store and ModelKeyProvider


    Hi,

    Why does Store with it's ModelKeyProvider allow for duplicated entries?

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Do you want me to move this thread to the bugs forum, so we can take a look at it and maybe prevent it?

    It should probably not be allowed, as it will cause a lot of problems, if you are doing it.

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    22
    Vote Rating
    0
    zaku is on a distinguished road

      0  

    Default


    Yes please do so.

  4. #4
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,643
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    TreeStore does this already, but only emits an error in Dev Mode*, to prevent the need to do an extra check every time that an item is added in production code.

    ListStore currently only relies on that string in cases like Records and when the find methods are used to look up items. My proposal would be for ListStore to have a Dev-Mode-only* check for new items, either a Set<String> or a walk through the current list each time something is added. Does that seem reasonable?


    * Actually these are run whenever assertions are enabled, so you can compile these in to the final output by passing -ea to the GWT compiler. This allows compiled JavaScript to be tested, either to deal with compiled-only bugs, or to work with Super Dev Mode.

  5. #5
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    22
    Vote Rating
    0
    zaku is on a distinguished road

      0  

    Default


    We ended up writing our own data structure, because ListStore wasn't really a match for our case.

  6. #6
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,643
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    I've made a few changes in ListStore so that whenever assertions are enabled (-ea flag when compiling, or by default in dev mode), all keys will be tracked and an exception will occur when adding a second model with the same key as an existing model. These changes are in SVN and will be available in the next release.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar