Examples of IRequestTarget


Examples of org.apache.wicket.IRequestTarget

        // , 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

Examples of org.apache.wicket.IRequestTarget

    {
      Class 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

Examples of org.apache.wicket.IRequestTarget

   * 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

Examples of org.apache.wicket.IRequestTarget

  /**
   * @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

Examples of org.apache.wicket.IRequestTarget

  /**
   * @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

Examples of org.apache.wicket.IRequestTarget

  {
    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

Examples of org.apache.wicket.IRequestTarget

    // 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

Examples of org.apache.wicket.IRequestTarget

     */
    public final void renderHead(final IHeaderResponse headResponse)
    {
      Response response = headResponse.getResponse();
      final WebRequestCycle cycle = (WebRequestCycle)RequestCycle.get();
      final IRequestTarget target = cycle.getRequestTarget();

      // we don't want to render this for stateless pages
      if (webPage.isPageStateless())
      {
        return;
View Full Code Here

Examples of org.apache.wicket.IRequestTarget

    }

    static class RequestCycleProcessor extends WebRequestCycleProcessor {
        public IRequestTarget resolve(RequestCycle requestCycle,
                RequestParameters requestParameters) {
            IRequestTarget target = super.resolve(requestCycle,
                    requestParameters);
            if (target != null) {
                return target;
            }
View Full Code Here

Examples of org.apache.wicket.IRequestTarget

   * 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
Copyright © 2018 www.massapi.com. 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.