1. #1
    Sencha User abshnasko's Avatar
    Join Date
    Sep 2011
    Posts
    44
    Answers
    1
    Vote Rating
    0
    abshnasko is on a distinguished road

      0  

    Default Answered: @UiHandler method not being invoked on Event

    Answered: @UiHandler method not being invoked on Event


    Note: running 3.0.0-rc2 since the GA release is not in Maven yet.

    I am trying to re-create this example: http://www.sencha.com/examples/#ExamplePlace:helloworld(uibinder)

    I
    have a button called "loginBtn", and I am defining my event handler thus:

    Code:
    @UiHandler("loginBtn")
    public void onLoginBtnClicked(SelectEvent e) {
        ...
    }
    I am using UiBinder, and "loginBtn" is defined as a ui:field in the UiBinder file, and I am calling createAndBindUi(this) inside of asWidget(). My widget is rendered perfectly, but my "onLoginBtnClicked" method is not being called when I click the button. I get no errors. Is there something else I need to do that I'm missing?

  2. Whoa figured it out right after I posted! Hopefully this helps someone else. I'm migrating a widget from 2.2.5 to 3.0.0, and I use MVP. My UiBinder interface looked like this:

    Code:
    interface LoginViewUiBinder extends UiBinder<Widget, LoginView> {
    Where "LoginView" is the interface for my view. I had to change it to this:

    Code:
    interface LoginViewUiBinder extends UiBinder<Widget, LoginViewImpl> {
    Where "LoginViewImpl" is the class in which I define my @UiHandler methods. This makes perfect sense, but I was not sufficiently astute to figure this out before I posted.

  3. #2
    Sencha User abshnasko's Avatar
    Join Date
    Sep 2011
    Posts
    44
    Answers
    1
    Vote Rating
    0
    abshnasko is on a distinguished road

      0  

    Default


    Whoa figured it out right after I posted! Hopefully this helps someone else. I'm migrating a widget from 2.2.5 to 3.0.0, and I use MVP. My UiBinder interface looked like this:

    Code:
    interface LoginViewUiBinder extends UiBinder<Widget, LoginView> {
    Where "LoginView" is the interface for my view. I had to change it to this:

    Code:
    interface LoginViewUiBinder extends UiBinder<Widget, LoginViewImpl> {
    Where "LoginViewImpl" is the class in which I define my @UiHandler methods. This makes perfect sense, but I was not sufficiently astute to figure this out before I posted.

Tags for this Thread

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