Description
AbstractAjaxBehavior isn't reusable right now. It saves a reference to a component on bind and doesn't properly clean it on unbind. It breaks the add/remove contract for behaviors. If a behavior is particularly expensive to create we should be able to remove it and reuse later on the same or other components.
Here is a simple fix:
@Override
public final void unbind(final Component hostComponent)
protected void onUnbind()
{
}
Attachments
Issue Links
- is related to
-
WICKET-5205 AbstractAjaxBehavior.unbind does not clean stored reference to host component
-
- Resolved
-