[ 
https://issues.apache.org/jira/browse/WICKET-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timo Rantalaiho updated WICKET-1215:
------------------------------------

    Fix Version/s:     (was: 1.4-M4)
                   1.5-M1
         Assignee: Timo Rantalaiho

In 1.4 living with the workaround is acceptable, thanks for providing that. 
Let's see how we can address this in 1.5.

> WicketTester recreates session after setting attributes on it
> -------------------------------------------------------------
>
>                 Key: WICKET-1215
>                 URL: https://issues.apache.org/jira/browse/WICKET-1215
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.4-M1
>            Reporter: Martijn Dashorst
>            Assignee: Timo Rantalaiho
>             Fix For: 1.5-M1
>
>
> The following test for internationalization doesn't work, as rendering the 
> page will create a new session.
>     WicketTester tester = new WicketTester();
>     tester.getWicketSession().setLocale(Locale.FRENCH);
>     tester.startPage(HelloWorld.class);
>     tester.assertLabel("message", "Bonjour tout le monde!");
> But setting up the response and request first works around recreating the 
> session
>     WicketTester tester = new WicketTester();
>     tester.setupRequestAndResponse();
>     tester.getWicketSession().setLocale(Locale.FRENCH);
>     tester.startPage(HelloWorld.class);
>     tester.assertLabel("message", "Bonjour tout le monde!");

-- 
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