[ 
https://issues.apache.org/jira/browse/WICKET-713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700272#action_12700272
 ] 

Igor Vaynberg commented on WICKET-713:
--------------------------------------

there is very little reason to reuse behaviors, they are cheap to create. 
because this requires a modification to a widely used interface we cannot 
implement this until version 1.5

> AbstractAjaxBehavior can not be reused.
> ---------------------------------------
>
>                 Key: WICKET-713
>                 URL: https://issues.apache.org/jira/browse/WICKET-713
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>            Reporter: Martin Funk
>             Fix For: 1.5-M1
>
>         Attachments: patch-713.diff
>
>
> AbstractAjaxBehavior is receiving a Component upon bind, this is keept even 
> when the Behavior is removed from the Component
> so if the Behavior is added again it throws a 
>                               IllegalStateException("this kind of handler 
> cannot be attached to "
>                                       + "multiple components; it is already 
> attached to component " + this.component
>                                       + ", but component " + hostComponent + 
> " wants to be attached too");

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to