Thanks for the info jamesr. Yes that is the way that i m looking for. By declaring a method, i could workaround it. I hope someone will have time to answer the other 2 questions. Thanks again.
Cem 2010/9/9 jamesr <[email protected]> > I can state that you cannot override handlers, whose philosophy is one of > hooking or extending events, not replacing them. That task is reserved for > overriding methods, where the new method will replace any previous methods > defined (unless you call the "super" construct to invoke the previously > defined method in your overriding method)\ > > I think what you might be looking for is having your onclick handler invoke > a method in the same class, and then that method in the class could be > overridden by subclasses. > > -jamesr > > cem sonmez wrote: > >> Hi, as i said in my earlier post, i have some questions that are probably >> so simple for you. >> >> 1-) I have two classes like below. >> >> <class name="chatView" extends="view" align="center"> >> <!--shared object for chat--> >> <sharedObjectChat id="soChat"> >> <handler name="onconnected" reference="conn"> >> //Debug.info("connected attribute operation, value >> :%w",conn.connectionOK); >> if (conn.connected) { >> this.connect("chat", conn._conn, true); >> this.so.client=this; >> } >> </handler> >> </sharedObjectChat> >> ... >> </class> >> >> <class name="login" extends="window"> >> <button name="loginButton" >Login >> <handler name="onclick"><