You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "vineet semwal (JIRA)" <ji...@apache.org> on 2012/10/03 10:24:09 UTC

[jira] [Created] (WICKET-4800) add getter for AjaxReaquestTarget.IListeners

vineet semwal created WICKET-4800:
-------------------------------------

             Summary: add getter for AjaxReaquestTarget.IListeners
                 Key: WICKET-4800
                 URL: https://issues.apache.org/jira/browse/WICKET-4800
             Project: Wicket
          Issue Type: Improvement
    Affects Versions: 6.0.0, 1.5.8
            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

[jira] [Commented] (WICKET-4800) add getter for AjaxReaquestTarget.IListeners

Posted by "vineet semwal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468536#comment-13468536 ] 

vineet semwal commented on WICKET-4800:
---------------------------------------

i like that idea but i can't follow that because i am not doing this at my end,i don't want user to especially set my AjaxRequestTarget implementation.
i got another idea though i don't know if it's good or not.. what if you add getter in AjaxRequestHandler in 6.x and later add the corresponding getter in AjaxRequestTarget?

for 1.5 i think you can just add getter in AjaxRequestTarget? 
                
> 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
>            Priority: Minor
>
> 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

[jira] [Commented] (WICKET-4800) add getter for AjaxReaquestTarget.IListeners

Posted by "vineet semwal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468616#comment-13468616 ] 

vineet semwal commented on WICKET-4800:
---------------------------------------

i don't need what i asked for in last comment ,i have added some other solution to my problem ..
                
> 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
>            Priority: Minor
>
> 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

[jira] [Updated] (WICKET-4800) add getter for AjaxReaquestTarget.IListeners

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov updated WICKET-4800:
------------------------------------

    Priority: Minor  (was: Major)
    
> 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
>            Priority: Minor
>
> 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

[jira] [Comment Edited] (WICKET-4800) add getter for AjaxReaquestTarget.IListeners

Posted by "vineet semwal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468616#comment-13468616 ] 

vineet semwal edited comment on WICKET-4800 at 10/4/12 2:33 AM:
----------------------------------------------------------------

i don't need what i asked for in last comment ,i have added some other solution to my problem but it will be good to have this feature in later versions ..
                
      was (Author: vineetsemwal):
    i don't need what i asked for in last comment ,i have added some other solution to my problem ..
                  
> 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
>            Priority: Minor
>
> 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

[jira] [Commented] (WICKET-4800) add getter for AjaxReaquestTarget.IListeners

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ 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