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

      0  

    Exclamation Exception in ListView

    Exception in ListView


    The ListView control throws an exception in Single-Selection mode, if you ctrl-click the selected item to de-select it. You can see this in the ListView Binding example: http://www.sencha.com/examples-dev/#...istviewbinding. I haven't tried any of the other selection modes to see what they do.

    I expect a SelectionChangedEvent<T> with an empty result list.

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    Thanks for the report. I've filed a bug against the team.

    Running the Explorer in development mode, it seems that this is an issue with the way the example has been written rather than a problem with ListView itself. If you look at ListViewBindingExample.java:91, you'll see that the example always attempts to retrieve the first item in the selection, even if the selection is empty (that is, has no items).

  3. #3
    Sencha Premium Member
    Join Date
    Dec 2011
    Posts
    34
    Vote Rating
    0
    MarcT is on a distinguished road

      0  

    Thumbs up


    Hah, you're right. I was doing the exact same thing.

    So it's just a bug in the sample, not the ListView.

  4. #4
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Fixed in SVN. The example now handles deselection by clearing the input fields and disabling the save button.

  5. #5
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    This bug has been fixed in the Ext GWT 3.0 Release Candidate. You'll see the corrected List View Binding example in the RC Explorer Demo. While we're confident that we've addressed this issue, please reply if you notice any continued problems after upgrading. Again, thanks for taking the time to report this bug.

Thread Participants: 2

Tags for this Thread