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

Igor Vaynberg resolved WICKET-2116.
-----------------------------------

    Resolution: Invalid
      Assignee: Igor Vaynberg

wicket does not store the session instance into http session until there is a 
reason to: either you render a stateful page or you call session.bind() 
manually. since your home is stateless the testsession instance is not 
persisted into http session.

> Session instantiated twice
> --------------------------
>
>                 Key: WICKET-2116
>                 URL: https://issues.apache.org/jira/browse/WICKET-2116
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-auth-roles
>    Affects Versions: 1.4-RC1
>         Environment: Windows, JDK 1.6
>            Reporter: bernard
>            Assignee: Igor Vaynberg
>         Attachments: Testcase.zip
>
>
> The attached testcase is similar to the Authentication example in the 
> distribution, only simpler.
> If I set a breakpoint on the constructor of the TestSession class, then the 
> session is instantiated twice. Once when HomePage is loaded, and the second 
> time when the link to the Admin page is clicked. If in contrast I run the 
> Authentication example then its session is instantiated only once.
> I don't have any idea why this happens.

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