this is currently the code:

public final Page startPage(final Page page)
   {
       setHomePage(DummyHomePage.class);
       processRequestCycle(page);

       Page last = getLastRenderedPage();

       createRequestCycle();  <<<<<<<<<<<<<<<<<<<<<<<< this line should
make sure that the touch works...
       getWicketSession().touch(page);
       if (page != last)
       {
           getWicketSession().touch(last);
       }
       return last;
   }

but it can be that it is purely 1.3

johan

On 1/5/07, Carfield Yim <[EMAIL PROTECTED]> wrote:

On 12/28/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> On 12/27/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > which version of wicket is that?
> > That should be fixed.
>
> Wicket 1.2.3, may be I should upgrade to 1.2.4
>
Just upgrade to 1.2.4 and this problem is still there. And I've double
verify that RequestCycle SHOULD be there as creating wickettester
should trigger that RequestCycle creation

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
:264)
        at com.genuco.web.pages.account.MainTest.testMain(MainTest.java
:29)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.junit.internal.runners.TestMethodRunner.executeMethodBody(
TestMethodRunner.java:99)
        at org.junit.internal.runners.TestMethodRunner.runUnprotected(
TestMethodRunner.java:81)
        at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
        at org.junit.internal.runners.TestMethodRunner.runMethod(
TestMethodRunner.java:75)
        at org.junit.internal.runners.TestMethodRunner.run(
TestMethodRunner.java:45)
        at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
TestClassMethodsRunner.java:71)
        at org.junit.internal.runners.TestClassMethodsRunner.run(
TestClassMethodsRunner.java:35)
        at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
TestClassRunner.java:42)
        at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
        at org.junit.internal.runners.TestClassRunner.run(
TestClassRunner.java:52)
        at org.junit.internal.runners.CompositeRunner.run(
CompositeRunner.java:29)
        at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
TestClassRunner.java:42)
        at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
        at org.junit.internal.runners.TestClassRunner.run(
TestClassRunner.java:52)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(
JUnit4TestReference.java:38)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:460)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:673)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:386)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:196)

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