Navigating a link in a StatelessForm's submit using WicketTester results in 
PageExpiredErrorPage
------------------------------------------------------------------------------------------------

                 Key: WICKET-2266
                 URL: https://issues.apache.org/jira/browse/WICKET-2266
             Project: Wicket
          Issue Type: Bug
    Affects Versions: 1.4-RC2
         Environment: Ubuntu 9.04, Sun JDK 1.6.0_12, Tomcat 6.0.18
            Reporter: Andrii Neverov
            Priority: Minor


I'm writing a unit test using WicketTester which:

1) starts from a bookmarkable page containing StatelessForm
2) fills 2 fields, submits the form and sends response to the second page
3) tries to navigate a link on the second page which point to a third page

the issue is that asserting the third page I get  
junit.framework.AssertionFailedError: expected:<AddUserPage> but 
was:<PageExpiredErrorPage>.

The code works fine in Tomcat and Jetty. 

The unit test also passes if:

1) I use Form instead of StatelessForm

or

2) Use BookmarkablePageLink instead of Link.

It looks like there is some problem with  wickettester+stateless->stateful.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to