Package org.apache.wicket

Examples of org.apache.wicket.PageParameters


        {
          // create a new request cycle for the newPage call
          createRequestCycle();
          IBookmarkablePageRequestTarget pageClassRequestTarget = (IBookmarkablePageRequestTarget)target;
          Class pageClass = pageClassRequestTarget.getPageClass();
          PageParameters parameters = pageClassRequestTarget.getPageParameters();
          if (parameters == null || parameters.size() == 0)
          {
            newLastRenderedPage = application.getSessionSettings()
              .getPageFactory()
              .newPage(pageClass);
          }
View Full Code Here


  @Override
  public IRequestHandler decode(ObsoleteRequestParameters requestParameters)
  {
    String pageMapName = requestParameters.getPageMapName();
    final PageParameters parameters = new PageParameters(requestParameters.getParameters());

    // This might be a request to a stateless page, so check for an
    // interface name.
    if (requestParameters.getInterfaceName() != null)
    {
View Full Code Here

        {
          // create a new request cycle for the newPage call
          createRequestCycle();
          IBookmarkablePageRequestTarget pageClassRequestTarget = (IBookmarkablePageRequestTarget)target;
          Class<? extends Page> pageClass = pageClassRequestTarget.getPageClass();
          PageParameters parameters = pageClassRequestTarget.getPageParameters();
          if (parameters == null || parameters.size() == 0)
          {
            newLastRenderedPage = application.getSessionSettings()
              .getPageFactory()
              .newPage(pageClass);
          }
View Full Code Here

        "Unable to load Bookmarkable Page");
    }

    try
    {
      PageParameters params = new PageParameters(requestParameters.getParameters());
      if (requestParameters.getComponentPath() != null &&
        requestParameters.getInterfaceName() != null)
      {
        final String componentPath = requestParameters.getComponentPath();
        final Page page = session.getPage(requestParameters.getPageMapName(),
View Full Code Here

    try
    {
      // Get the home page class
      Class homePageClass = application.getHomePage();

      PageParameters parameters = new PageParameters(requestParameters.getParameters());
      // and create a dummy target for looking up whether the home page is
      // mounted
      BookmarkablePageRequestTarget homepageTarget = new BookmarkablePageRequestTarget(
        homePageClass, parameters);
      IRequestCodingStrategy requestCodingStrategy = requestCycle.getProcessor()
View Full Code Here

      encoder.addValue(WebRequestCodingStrategy.BOOKMARKABLE_PAGE_PARAMETER_NAME,
        pageMapName + Component.PATH_SEPARATOR + pageClass.getName());
    }

    // Get page parameters
    final PageParameters parameters = requestTarget.getPageParameters();
    if (parameters != null)
    {
      final Iterator iterator;
      if (UnitTestSettings.getSortUrlParameters())
      {
        iterator = new TreeSet(parameters.keySet()).iterator();
      }
      else
      {
        iterator = parameters.keySet().iterator();
      }
      while (iterator.hasNext())
      {
        final String key = (String)iterator.next();
        final String values[] = parameters.getStringArray(key);
        if (values != null)
        {
          for (int i = 0; i < values.length; i++)
          {
            encoder.addValue(key, values[i]);
View Full Code Here

    {
      throw new IllegalArgumentException("Argument pageClass must be an instance of " +
        Page.class.getName());
    }
    pageClassRef = new WeakReference(pageClass);
    this.pageParameters = (pageParameters == null) ? new PageParameters() : pageParameters;
    this.pageMapName = pageMapName;
  }
View Full Code Here

  /**
   * @throws Exception
   */
  public void testRenderHomePage4() throws Exception
  {
    executeTest(EnclosurePage_4.class, new PageParameters("visible=false"),
      "EnclosurePageExpectedResult_4.html");
  }
View Full Code Here

  /**
   * @throws Exception
   */
  public void testRenderHomePage4_1() throws Exception
  {
    executeTest(EnclosurePage_4.class, new PageParameters("visible=true"),
      "EnclosurePageExpectedResult_4-1.html");
  }
View Full Code Here

  /**
   * @throws Exception
   */
  public void testRenderHomePage5() throws Exception
  {
    executeTest(EnclosurePage_5.class, new PageParameters("visible=false"),
      "EnclosurePageExpectedResult_5.html");
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.PageParameters

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.