Examples of urlFor()


Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      if (markupIdToComponent.values().contains(page))
      {
        // the page itself has been added to the request target, we simply issue a redirect
        // back to the page
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
        final String url = rc.urlFor(handler).toString();
        response.sendRedirect(url);
        return;
      }

      for (ITargetRespondListener listener : respondListeners)
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

          IRequestHandler activeRequestHandler = requestCycle.getActiveRequestHandler();

          final String url;
          if (activeRequestHandler != null)
          {
            url = requestCycle.urlFor(activeRequestHandler).toString();
          }
          else
          {
            url = requestCycle.urlFor(getApplication().getHomePage(), null).toString();
          }
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

          {
            url = requestCycle.urlFor(activeRequestHandler).toString();
          }
          else
          {
            url = requestCycle.urlFor(getApplication().getHomePage(), null).toString();
          }
          String relativeUrl = requestCycle.getUrlRenderer()
            .renderContextPathRelativeUrl(url);
          Page browserInfoPage = newBrowserInfoPage(relativeUrl);
          throw new RestartResponseException(browserInfoPage);
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      protected void onSubmit(AjaxRequestTarget target)
      {
        BookmarkablePageRequestHandler bookmarkablePageRequestHandler = new BookmarkablePageRequestHandler(
          new PageProvider(Index.class));
        RequestCycle requestCycle = RequestCycle.get();
        CharSequence urlFor = requestCycle.urlFor(bookmarkablePageRequestHandler);
        System.err.println("index:  " + urlFor);
        target.add(label);
      }

      @Override
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      CharSequence pageUrl = null;
      RequestCycle requestCycle = RequestCycle.get();

      if (page.isPageStateless())
      {
        pageUrl = requestCycle.urlFor(page.getClass(), page.getPageParameters());
        appendAssignment(buffer, "settings.ie8_src", pageUrl);
      }
      else
      {
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      }
      else
      {
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));

        pageUrl = requestCycle.urlFor(handler);
        String ie8_pageUrl = requestCycle.getUrlRenderer().renderRelativeUrl(
          requestCycle.mapUrlFor(handler));
        appendAssignment(buffer, "settings.ie8_src", ie8_pageUrl);
      }
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      protected void onSubmit(AjaxRequestTarget target)
      {
        BookmarkablePageRequestHandler bookmarkablePageRequestHandler = new BookmarkablePageRequestHandler(
          new PageProvider(Index.class));
        RequestCycle requestCycle = RequestCycle.get();
        CharSequence urlFor = requestCycle.urlFor(bookmarkablePageRequestHandler);
        target.add(label);
      }

      @Override
      protected void onError(AjaxRequestTarget target)
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

    if (responseObject.containsPage())
    {
      // the page itself has been added to the request target, we simply issue a redirect
      // back to the page
      IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
      final String url = rc.urlFor(handler).toString();
      response.sendRedirect(url);
      return;
    }

    respondersFrozen = true;
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

      if (markupIdToComponent.values().contains(page))
      {
        // the page itself has been added to the request target, we simply issue a redirect back
        // to the page
        IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
        final String url = rc.urlFor(handler).toString();
        response.sendRedirect(url);
        return;
      }

      for (ITargetRespondListener listener : respondListeners)
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle.urlFor()

    if (markupIdToComponent.values().contains(page))
    {
      // the page itself has been added to the request target, we simply issue a redirect
      // back to the page
      IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));
      final String url = rc.urlFor(handler).toString();
      response.sendRedirect(url);
      return;
    }

    respondersFrozen = true;
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.