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

StatelessForm submitted to the wrong page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-M3
    • 1.4-RC6
    • None
    • None

    Description

      I made a small application to reproduce the problem. You can download it from http://aditsu.net/wickettest.zip , I'll try to attach it too.
      Dependencies: jetty 6, wicket 1.4-m3, slf4j, log4j
      Steps to reproduce:
      1. Run the test.Start class
      2. Open http://localhost:8080 in a browser
      3. Open http://localhost:8080/page2 in a new tab
      4. Go to the first tab and click submit

      Result:

      WicketRuntimeException: unable to find component with path form on stateless page [Page class = test.Page2, id = 0, version = 0]

      It looks like the 2 pages are created with the same id in 2 different pagemaps, but when I submit the form, it goes to the second pagemap and finds the second page (with no form on it).

      Attachments

        1. jira1897.patch
          5 kB
          Anatoly Kupriyanov
        2. wickettest.zip
          3 kB
          Adrian Sándor

        Activity

          People

            ivaynberg Igor Vaynberg
            aditsu Adrian Sándor
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: