Wicket
  1. Wicket
  2. WICKET-4327

wickettester should have getajaxrequestarget

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      wicket 1.5.3

      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

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vineet semwal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development