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

Martin Grigorov commented on WICKET-4800:
-----------------------------------------

I'm not sure we can add the getter for 6.x.
AjaxRequestTarget is an interface now and adding a new method may break some 
custom implementations of it.
The good news is that you can extend AjaxRequestHandler and add this method 
yourself. Then just use your impl with: 
org.apache.wicket.protocol.http.WebApplication#setAjaxRequestTargetProvider().
                
> add getter for AjaxReaquestTarget.IListeners
> --------------------------------------------
>
>                 Key: WICKET-4800
>                 URL: https://issues.apache.org/jira/browse/WICKET-4800
>             Project: Wicket
>          Issue Type: Improvement
>    Affects Versions: 1.5.8, 6.0.0
>            Reporter: vineet semwal
>
> i have a use case where my AjaxRequestTarget.IListener does some search for a 
> component and  then adds some script ,this can be done one time or more than 
> one time.
> currently since there is not a getter for IListeners ,i can't see if my 
> listener is already added so i have to add many such listeners so say if i 
> have to do that process 5 times.it will end up doing the same search for 
> component 5 times since there are 5 listeners now...
> this can be prevented by adding a getter for the Ilisteners... ,i will then 
> have to add one listener which will add the scripts provided to it.
> thanks !

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to