Package org.apache.wicket

Examples of org.apache.wicket.IPageFactory


   * @return new instance of page
   */
  protected Page newPage(final Class pageClass, final RequestCycle requestCycle)
  {
    // Construct a new instance using the default page factory
    IPageFactory pageFactory = requestCycle.getApplication()
      .getSessionSettings()
      .getPageFactory();

    if (pageParameters == null || pageParameters.size() == 0)
    {
      return pageFactory.newPage(pageClass);
    }
    else
    {
      // Add bookmarkable params in for WICKET-400.
      requestCycle.getRequest().getParameterMap().putAll(pageParameters);
      return pageFactory.newPage(pageClass, pageParameters);
    }
  }
View Full Code Here


   */
  protected <C extends Page> Page newPage(final Class<C> pageClass,
    final RequestCycle requestCycle)
  {
    // Construct a new instance using the default page factory
    IPageFactory pageFactory = requestCycle.getApplication()
      .getSessionSettings()
      .getPageFactory();

    if (pageParameters == null || pageParameters.size() == 0)
    {
      return pageFactory.newPage(pageClass);
    }
    else
    {
      // Add bookmarkable params in for WICKET-400.
      final Map<String, String[]> requestMap = requestCycle.getRequest().getParameterMap();
      requestMap.putAll(pageParameters.toRequestParameters());
      return pageFactory.newPage(pageClass, pageParameters);
    }
  }
View Full Code Here

   */
  protected <C extends Page> Page newPage(final Class<C> pageClass,
    final RequestCycle requestCycle)
  {
    // Construct a new instance using the default page factory
    IPageFactory pageFactory = requestCycle.getApplication()
      .getSessionSettings()
      .getPageFactory();

    if (pageParameters == null || pageParameters.size() == 0)
    {
      return pageFactory.newPage(pageClass);
    }
    else
    {
      // Add bookmarkable params in for WICKET-400.
      final Map<String, String[]> requestMap = requestCycle.getRequest().getParameterMap();
      requestMap.putAll(pageParameters.toRequestParameters());
      return pageFactory.newPage(pageClass, pageParameters);
    }
  }
View Full Code Here

   */
  protected <C extends Page> Page newPage(final Class<C> pageClass,
    final RequestCycle requestCycle)
  {
    // Construct a new instance using the default page factory
    IPageFactory pageFactory = requestCycle.getApplication()
      .getSessionSettings()
      .getPageFactory();

    if (pageParameters == null || pageParameters.size() == 0)
    {
      return pageFactory.newPage(pageClass);
    }
    else
    {
      // Add bookmarkable params in for WICKET-400.
      final Map<String, String[]> requestMap = requestCycle.getRequest().getParameterMap();
      requestMap.putAll(pageParameters.toRequestParameters());
      return pageFactory.newPage(pageClass, pageParameters);
    }
  }
View Full Code Here

   */
  protected <C extends Page> Page newPage(final Class<C> pageClass,
    final RequestCycle requestCycle)
  {
    // Construct a new instance using the default page factory
    IPageFactory pageFactory = requestCycle.getApplication()
      .getSessionSettings()
      .getPageFactory();

    if (pageParameters == null || pageParameters.size() == 0)
    {
      return pageFactory.newPage(pageClass);
    }
    else
    {
      // Add bookmarkable params in for WICKET-400.
      final Map<String, String[]> requestMap = requestCycle.getRequest().getParameterMap();
      requestMap.putAll(pageParameters.toRequestParameters());
      return pageFactory.newPage(pageClass, pageParameters);
    }
  }
View Full Code Here

   */
  protected <C extends Page> Page newPage(final Class<C> pageClass,
    final RequestCycle requestCycle)
  {
    // Construct a new instance using the default page factory
    IPageFactory pageFactory = requestCycle.getApplication()
      .getSessionSettings()
      .getPageFactory();

    if (pageParameters == null || pageParameters.size() == 0)
    {
      return pageFactory.newPage(pageClass);
    }
    else
    {
      // Add bookmarkable params in for WICKET-400.
      final Map<String, String[]> requestMap = requestCycle.getRequest().getParameterMap();
      requestMap.putAll(pageParameters.toRequestParameters());
      return pageFactory.newPage(pageClass, pageParameters);
    }
  }
View Full Code Here

   * @return new instance of page
   */
  protected Page newPage(final Class pageClass, final RequestCycle requestCycle)
  {
    // Construct a new instance using the default page factory
    IPageFactory pageFactory = requestCycle.getApplication().getSessionSettings()
      .getPageFactory();

    if (pageParameters == null || pageParameters.size() == 0)
    {
      return pageFactory.newPage(pageClass);
    }
    else
    {
      // Add bookmarkable params in for WICKET-400.
      requestCycle.getRequest().getParameterMap().putAll(pageParameters);
      return pageFactory.newPage(pageClass, pageParameters);
    }
  }
View Full Code Here

   */
  protected <C extends Page> Page newPage(final Class<C> pageClass,
    final RequestCycle requestCycle)
  {
    // Construct a new instance using the default page factory
    IPageFactory pageFactory = requestCycle.getApplication()
      .getSessionSettings()
      .getPageFactory();

    if (pageParameters == null || pageParameters.size() == 0)
    {
      return pageFactory.newPage(pageClass);
    }
    else
    {
      // Add bookmarkable params in for WICKET-400.
      final Map<String, String[]> requestMap = requestCycle.getRequest().getParameterMap();
      requestMap.putAll(pageParameters.toRequestParameters());
      return pageFactory.newPage(pageClass, pageParameters);
    }
  }
View Full Code Here

   * @deprecated Use {@link Session#getPageFactory()}
   */
  @Deprecated
  public IPageFactory getPageFactory()
  {
    IPageFactory pageFactory = null;

    if (Application.exists())
    {
      pageFactory = Application.get().getPageFactory();
    }
View Full Code Here

   */
  protected <C extends Page<?>> Page<?> newPage(final Class<C> pageClass,
    final RequestCycle requestCycle)
  {
    // Construct a new instance using the default page factory
    IPageFactory pageFactory = requestCycle.getApplication()
      .getSessionSettings()
      .getPageFactory();

    if (pageParameters == null || pageParameters.size() == 0)
    {
      return pageFactory.newPage(pageClass);
    }
    else
    {
      // Add bookmarkable params in for WICKET-400.
      requestCycle.getRequest().getParameterMap().putAll(pageParameters);
      return pageFactory.newPage(pageClass, pageParameters);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.IPageFactory

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.