Hi Martin, Ok. But what if I want to remove it and then add again later? In my case I have several behaviors that are relatively heavy to create and I switch them.
Vitaly 2012/12/12 Martin Grigorov <mgrigo...@apache.org> > Hi, > > It is expected behavior. > An Ajax behavior can work with only one component because it cannot create > callbackUrl for more than one. > > > On Wed, Dec 12, 2012 at 4:06 PM, Vitaly Tsaplin <vitaly.tsap...@gmail.com > >wrote: > > > Hi, > > > > It looks like it is not possible to remove an instance of > > AbstractAjaxBehavior. The behavior keeps reference to a component it was > > attached to and doesn't override unbind so it doesn't clear this > reference. > > On every subsequent attempt to attach it throws an exception saying that > it > > cannot be attached to more then one component. Should I file a bug or it > is > > expected behavior? > > > > Vitaly > > > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com <http://jweekend.com/> >