sure its possible, you can iterate the list of behaviors and look for an event behavior with event==onclick
trying to remove a behavior not directly associated with the component would be...weird. -igor On Sun, Nov 21, 2010 at 3:26 PM, Gaetan Zoritchak <[email protected]> wrote: > In my case it's not possible as I extend the AjaxEditableLabel and the > Behaviour is added without keeping a reference on it. > I want to remove the "onclick" behaviour sometimes but it's impossible. > > 2010/11/22 Igor Vaynberg <[email protected]> > >> if equals is not implemented then it falls back on identity. it makes >> sense that if you want to remove an instance of ibehavior from a >> component then you should have that exact instance. >> >> -igor >> >> On Sun, Nov 21, 2010 at 3:18 PM, Gaetan Zoritchak >> <[email protected]> wrote: >> > Hi, >> > >> > All is in the message object ;) >> > >> > For my development, I wanted to remove a behaviour on the >> AjaxEditableLabel >> > in some cases. It didn't work since the equals method wasn't implemented. >> I >> > had to modify the source code to make it work. >> > >> > Thanks for the replies, >> > Gaetan, >> > >> >
