GWT is making an unexpected event call -


my code below: seeing on running app loadwidget method gets invoked when adminlink not clicked. not want want, i'm not sure causing issue. please advise

public class loginmodule implements entrypoint {     loginpopup loginpopup;        private class loginpopup extends popuppanel {              public loginpopup() {               super(true);                   }                  public void loadwidget(){                 system.out.println("i called 1");                  commonui cui = new commonui();                   //#342 moved code common area                   formpanel loginform = cui.getloginformui();                   setwidget(loginform);             }      }       @override     public void onmoduleload() {         //#251 improved login popup ui.         final anchor adminlink = new anchor("user login");     //  final label adminlink = new label("user login");         adminlink.addclickhandler(new clickhandler() {               public void onclick(clickevent event) {                 // instantiate popup , show it.                 loginpopup =   new loginpopup();                 loginpopup.loadwidget();                 loginpopup.showrelativeto(adminlink);                 loginpopup.show();               }             });          if(rootpanel.get("admin") !=null)             rootpanel.get("admin").add(adminlink);      }  } 

running dev mode, set breakpoint in method in java ide, , take @ current stack, code calling method. if code in app, appears invokable onclick handlers, matter of figuring out why being invoked.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -