Examples of QueryStringUrlCodingStrategy

Regardless of which coding strategy is chosen for the mount, {@link org.apache.wicket.markup.html.link.BookmarkablePageLink BookmarkablePageLink} can be usedto insert a bookmarkable link to the request target.

This example demonstrates how to mount a path with QueryStringRequestTargetUrlCodingStrategy within the init method of a class implementing {@link org.apache.wicket.protocol.http.WebApplication WebApplication}:

mount(new QueryStringUrlCodingStrategy("/admin/productmanagement", admin.ProductManagement.class));

Note that, as with the main BookmarkablePageRequestTargetUrlCodingStrategy, if the output of this coding strategy is passed through {@link javax.servlet.http.HttpServletResponse#encodeURL(java.lang.String) HttpServletResponse.encodeURL} and the client has cookies turned off, the client's session IDwill be stored in a path parameter, like so:"/mywebapp/myservlet/admin/productmanagement;jsessionid=730EC527564AF1C73F8C2FB19B604F55?action=edit&product=4995" . @author Benjamin Hawkes-Lewis


Examples of org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy

  {
    mountBookmarkablePage("/success.html", Success.class);
    mountBookmarkablePage("/cancel.html", Cancel.class);
    mountBookmarkablePage("/error.html", Error.class);

    mount(new QueryStringUrlCodingStrategy("/Saisons.html",
        SaisonsPage.class));
    mount(new QueryStringUrlCodingStrategy("/Evenements.html",
        EvenementsPage.class));
    mount(new QueryStringUrlCodingStrategy("/Courses.html",
        CoursesPage.class));
    mount(new QueryStringUrlCodingStrategy("/Inscriptions.html",
        InscriptionsPage.class));

  }
View Full Code Here

Examples of org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy

  }

  private <C extends Page<?>> void mountBookmarkablePageWithUrlCoding(String path,
    Class<C> pageClass)
  {
    mount(new QueryStringUrlCodingStrategy(path, pageClass));
  }
View Full Code Here

Examples of org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy

   * @see org.apache.wicket.examples.WicketExampleApplication#init()
   */
  @Override
  protected void init()
  {
    mount(new QueryStringUrlCodingStrategy("/statefull", StatefulPage.class));
    mount(new QueryStringUrlCodingStrategy("/query", StatelessPage1.class));
    mount(new MixedParamUrlCodingStrategy("/mixed", StatelessPage2.class, new String[] {
        "param1", "param2" }));
    mount(new IndexedParamUrlCodingStrategy("/indexed", StatelessPage3.class));
    // mount("/public", PackageName.forClass(StatelessApplication.class));
    // mountBookmarkablePage("foo", StatelessPage.class);
View Full Code Here

Examples of org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy

    return Home.class;
  }

  private void mountBookmarkablePageWithUrlCoding(String path, Class pageClass)
  {
    mount(new QueryStringUrlCodingStrategy(path, pageClass));
  }
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.