1. #1
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    867
    Vote Rating
    1
    micgala is on a distinguished road

      0  

    Default SelectionChangedListener ClassCastException

    SelectionChangedListener ClassCastException


    Hi.

    I have a grid which is Grid<SomeModel>.

    When I try to add a SelectionChangedListener to that grid's SelectionModel, then I have a ClassCastException.

    This is the code I used for adding the listener:

    Code:
    grid.getSelectionModel().addSelectionChangedListener(new SelectionChangedListener<SomeModel>() {
                @Override
                public void selectionChanged(SelectionChangedEvent<SomeModel> se) {
                    //Will do stuff here
                }
            });
    The exception occurs in the moment I select something in the grid.... but the Will do stuff here is not even called.... the error occurs before that....

    Does anyone have any idea on what is the problem?

    PS: The ClassCastException seems to happen in this gxt class:
    java.lang.ClassCastException: com.extjs.gxt.ui.client.event.SelectionEvent

    Thanks,
    Michel.
    Last edited by micgala; 12 Dec 2008 at 3:40 AM. Reason: more info.

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