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 (Updated) (JIRA)" <ji...@apache.org> on 2012/01/07 12:07:40 UTC

[jira] [Updated] (WICKET-4327) wickettester should have getajaxrequestarget

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

vineet semwal updated WICKET-4327:
----------------------------------

    Description: 
currently wickettester doesnt have something like getAjaxrequesttarget() ,its needed for the case where you have to test the components added in ART,
it can be done easily by saving the target in ART.respond(requestcycle) in some  object foreg.i did this in local wicket copy
public enum LastAjaxTarget {
    INSTANCE;
    public AjaxRequestTarget getTarget() {
        return target;
    }
    public void setTarget(AjaxRequestTarget target) {
        this.target = target;
    }
    AjaxRequestTarget target;
}

and in ART.respond(requestcycle), i just call the setter and provides the current ART , so wickettester or anything can access the LastAjaxTarget..

thanks  
Vineet Semwal


  was:
currently wickettester doesnt have something like getAjaxrequesttarget() ,its needed for the case where you have to test the components added in ART,
it can be done easily by saving the target in ART.respond(requestcycle) in some global object foreg.i did this in local wicket copy
public enum LastAjaxTarget {
    INSTANCE;
    public AjaxRequestTarget getTarget() {
        return target;
    }
    public void setTarget(AjaxRequestTarget target) {
        this.target = target;
    }
    AjaxRequestTarget target;
}

and in ART.respond(requestcycle), i just call the setter and provides the current ART , so wickettester or anything can access the LastAjaxTarget..

thanks  
Vineet Semwal


    
> wickettester should have getajaxrequestarget
> --------------------------------------------
>
>                 Key: WICKET-4327
>                 URL: https://issues.apache.org/jira/browse/WICKET-4327
>             Project: Wicket
>          Issue Type: New Feature
>    Affects Versions: 1.5.3
>         Environment: wicket 1.5.3
>            Reporter: vineet semwal
>
> currently wickettester doesnt have something like getAjaxrequesttarget() ,its needed for the case where you have to test the components added in ART,
> it can be done easily by saving the target in ART.respond(requestcycle) in some  object foreg.i did this in local wicket copy
> public enum LastAjaxTarget {
>     INSTANCE;
>     public AjaxRequestTarget getTarget() {
>         return target;
>     }
>     public void setTarget(AjaxRequestTarget target) {
>         this.target = target;
>     }
>     AjaxRequestTarget target;
> }
> and in ART.respond(requestcycle), i just call the setter and provides the current ART , so wickettester or anything can access the LastAjaxTarget..
> thanks  
> Vineet Semwal

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira