Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-42

mount and IndexedParamUrlCodingStrategy severe malfunctions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0 branch (discontinued)
    • 2.0 branch (discontinued)
    • wicket
    • None
    • Sun Java System Application Server 9.0

    Description

      Filter is set up this way:
      <filter>
      <filter-name>Name</filter-name>
      <filter-class>wicket.protocol.http.WicketFilter</filter-class>
      <init-param>
      <param-name>applicationClassName</param-name>
      <param-value>de.shop.Application</param-value>
      </init-param>
      <init-param>
      <param-name>configuration</param-name>
      <param-value>development</param-value>
      </init-param>
      </filter>
      <filter-mapping>
      <filter-name>Name</filter-name>
      <url-pattern>/*</url-pattern>
      </filter-mapping>

      Application.java is:
      public void init()

      { mount(new IndexedParamUrlCodingStrategy("/Index",Index.class)); }

      public Class getHomePage()

      { return Index.class; }

      when this is first deployed, all is OK and working as expected: e.g: accessing 127.0.0.1/ -> Index page loads
      if reDeploying it wont load anymore, no errors are issued however.
      If youre on 127.0.0.1/Index (index-page mounted) and then redeploy and klick on any link or reload the page, the path changes to 127.0.0.1/Index/Index
      if params are already issued it changes from 127.0.0.1/Index/param0/param1 to 127.0.0.1/Index/param0/param1/Index
      doing it another time ends up in 127.0.0.1/Index/param0/param1/Index/param0/param1/Index etc.

      links are BookMarkablePageLinks e.g:
      new BookmarkablePageLink(this,"linkTo",link.getLinkTarget(),link.getParams());

      Attachments

        Activity

          People

            jcompagner Johan Compagner
            korbinian Korbinian Bachl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: