Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    Italy
    Posts
    8
    Vote Rating
    0
    secretkeeper81 is on a distinguished road

      0  

    Default ListStore.getAll() returns an unmodifiable list, which is not serializable

    ListStore.getAll() returns an unmodifiable list, which is not serializable


    The method ListStore.getAll() returns Collections.unmodifiableList which is *not* serializable, therefore the resulting list cannot be used to be passed as parameter in an RPC call.

    For instance, the following code:

    Code:
    List<MyModel> list = grid.getStore().getAll();
    
    service.doSomething(list,
                new AsyncCallback<Void>() {
    
                    public void onFailure(Throwable caught) {
                        // TODO Auto-generated method stub
                    }
                    public void onSuccess(Void result) {
                         // TODO Auto-generated method stub
                    }
                });
    will throw an exception related to serialization. The workaround is to wrap the list in a new ArrayList().

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,644
    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


    Until GWT supports serializing unmodifiable lists, there isn't much we can do here. The 'best' option for us would be to modify getAll() to copy the list internally like you are doing with the wrapper ArrayList, but that would make the getAll() method much more expensive to call.

Thread Participants: 1

Tags for this Thread

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