which version of wicket is that?
That should be fixed.
And it is not strange becuase in that startPage we did call touch on the
page/session
after the complete processRequestcycle was called.

johan


On 12/27/06, Carfield Yim <[EMAIL PROTECTED]> wrote:

I just get another exception from the unit test, this is kind of
strangle that complaint about No RequestCycle available:

wicket.WicketRuntimeException: Can not set the attribute. No
RequestCycle available
        at wicket.Session.setAttribute(Session.java:933)
        at wicket.PageMap.put(PageMap.java:526)
        at wicket.Session.touch(Session.java:744)
        at wicket.util.tester.WicketTester.startPage(WicketTester.java
:262)

However, just before I call startPage I add
Assert.assertNotNull(RequestCycle.get()) and it is passed, and this
only occur for one test cases I have, just wonder when will
RequestCycle.detach() being called so RequestCycle.current begin set
to null?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to