[ 
https://issues.apache.org/jira/browse/WICKET-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Grigorov updated WICKET-214:
-----------------------------------

    Attachment: JQueryEventBehavior.java

Here is a behavior based on JQuery.bind() that allows that.
I created it to show how to use JQuery's mouseenter/mouseleave events but it 
can be used for this case too.

I believe that assigning several behaviors on the same event is bad practice 
because this will make several Ajax calls to the server side. Better do one 
call and then at the server side delegate to all interested parties.

> Call all behaviors attached to the same event
> ---------------------------------------------
>
>                 Key: WICKET-214
>                 URL: https://issues.apache.org/jira/browse/WICKET-214
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.4-M1
>            Reporter: Erik van Oosten
>            Assignee: Igor Vaynberg
>         Attachments: JQueryEventBehavior.java
>
>
> If one adds 2 AjaxFormComponentUpdatingBehaviors with event "onchange" to the 
> same form component, only the behavior that was added last will actually be 
> called. Please make it so that both are called.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to