1. #1
    Ext User
    Join Date
    May 2008
    Posts
    105
    Vote Rating
    0
    Grandiosa is on a distinguished road

      0  

    Default StoreListeners need PropertyChangeEvents

    StoreListeners need PropertyChangeEvents


    I think StoreListeners should be able to determine which property that changed on the model. A controller need this to do necessary RPC calls based on certain property changes, such as model.setActive() etc.

    Today a StoreListener receives a StoreEvent, which extends BaseEvent and not ChangeEvent.
    The StoreEvent contains the updated model object and a record object. But the record cannot be used to determine changes because it's already committed (the StoreListener is invoked from Record.afterCommit )

    There are other ways to achieve this, like registering ChangeListeners on all the Store's models, or setting up a PropertyChangeEvent yourself in the listener for the Store's widget.

    But I think it should be possible to do this clean and easy in a StoreListener residing in your controller, where also the Store itself is typically hosted.

  2. #2
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    Mmm, I'm not sure it is the purpose of the Store to tell which Model property has changed

Thread Participants: 1

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