Package org.apache.wicket

Examples of org.apache.wicket.IRequestTarget


  {
    RequestCycle rc = RequestCycle.get();
    IRequestCycleProcessor processor = rc.getProcessor();
    final RequestParameters requestParameters = processor.getRequestCodingStrategy().decode(
      new FormDispatchRequest(rc.getRequest(), url));
    IRequestTarget rt = processor.resolve(rc, requestParameters);
    if (rt instanceof IListenerInterfaceRequestTarget)
    {
      IListenerInterfaceRequestTarget interfaceTarget = ((IListenerInterfaceRequestTarget)rt);
      interfaceTarget.getRequestListenerInterface().invoke(page, interfaceTarget.getTarget());
    }
View Full Code Here


  /**
   * @see org.apache.wicket.request.IRequestCycleProcessor#processEvents(org.apache.wicket.RequestCycle)
   */
  public void processEvents(RequestCycle requestCycle)
  {
    IRequestTarget target = requestCycle.getRequestTarget();

    if (target instanceof IEventProcessor)
    {
      Application.get().logEventTarget(target);
      ((IEventProcessor)target).processEvents(requestCycle);
View Full Code Here

  /**
   * @see org.apache.wicket.request.IRequestCycleProcessor#respond(org.apache.wicket.RequestCycle)
   */
  public void respond(RequestCycle requestCycle)
  {
    IRequestTarget requestTarget = requestCycle.getRequestTarget();
    if (requestTarget != null)
    {
      Application.get().logResponseTarget(requestTarget);
      requestTarget.respond(requestCycle);
    }
  }
View Full Code Here

        // , IBookmarkablePageRequestTarget)
        // since only the test is suffering from this problem

        // this is a bit ugly and i am open to suggestions on how to fix this better. MM
        String pageMapName;
        IRequestTarget currentTarget = cycle.getRequestTarget();
        if (currentTarget instanceof IPageRequestTarget)
        {
          Page currentPage = ((IPageRequestTarget)currentTarget).getPage();
          final IPageMap pageMap = currentPage.getPageMap();
          if (pageMap.isDefault())
View Full Code Here

    {
      Class<? extends Page> responseClass = cycle.getResponsePageClass();
      if (responseClass != null)
      {
        Session.set(cycle.getSession());
        IRequestTarget target = cycle.getRequestTarget();
        if (target instanceof IPageRequestTarget)
        {
          newLastRenderedPage = ((IPageRequestTarget)target).getPage();
        }
        else if (target instanceof IBookmarkablePageRequestTarget)
View Full Code Here

  {
    IRequestCodingStrategy requestCodingStrategy = requestCycle.getProcessor()
        .getRequestCodingStrategy();

    final String path = requestParameters.getPath();
    IRequestTarget target = null;

    // See whether this request points to a bookmarkable page
    if (requestParameters.getBookmarkablePageClass() != null)
    {
      target = resolveBookmarkablePage(requestCycle, requestParameters);
View Full Code Here

    // Find pagemap name
    String pageMapName = requestTarget.getPageMapName();
    if (pageMapName == null)
    {
      IRequestTarget currentTarget = requestCycle.getRequestTarget();
      if (currentTarget instanceof IPageRequestTarget)
      {
        Page currentPage = ((IPageRequestTarget)currentTarget).getPage();
        final IPageMap pageMap = currentPage.getPageMap();
        if (pageMap.isDefault())
View Full Code Here

    // Find pagemap name
    String pageMapName = requestTarget.getPageMapName();
    if (pageMapName == null)
    {
      IRequestTarget currentTarget = requestCycle.getRequestTarget();
      if (currentTarget instanceof IPageRequestTarget)
      {
        Page currentPage = ((IPageRequestTarget)currentTarget).getPage();
        final IPageMap pageMap = currentPage.getPageMap();
        if (pageMap.isDefault())
View Full Code Here

  {
    RequestCycle rc = RequestCycle.get();
    IRequestCycleProcessor processor = rc.getProcessor();
    final RequestParameters requestParameters = processor.getRequestCodingStrategy().decode(
      new FormDispatchRequest(rc.getRequest(), url));
    IRequestTarget rt = processor.resolve(rc, requestParameters);
    if (rt instanceof IListenerInterfaceRequestTarget)
    {
      IListenerInterfaceRequestTarget interfaceTarget = ((IListenerInterfaceRequestTarget)rt);
      interfaceTarget.getRequestListenerInterface().invoke(page, interfaceTarget.getTarget());
    }
View Full Code Here

   * you don't have the AjaxRequestTarget instance. However, it is also safe to call this method
   * outside Ajax response.
   */
  public final void updateTree()
  {
    IRequestTarget target = getRequestCycle().getRequestTarget();
    if (target instanceof AjaxRequestTarget)
    {
      updateTree((AjaxRequestTarget)target);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.IRequestTarget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.