You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jb...@apache.org on 2007/08/24 15:59:57 UTC
svn commit: r569390 -
/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Session.java
Author: jbq
Date: Fri Aug 24 06:59:56 2007
New Revision: 569390
URL: http://svn.apache.org/viewvc?rev=569390&view=rev
Log:
Improve error message, related to WICKET-851 WicketTester unusable after subsequent startPage(Page) call
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Session.java
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Session.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Session.java?rev=569390&r1=569389&r2=569390&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Session.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Session.java Fri Aug 24 06:59:56 2007
@@ -1297,7 +1297,7 @@
if (cycle == null)
{
throw new IllegalStateException(
- "Cannot set the attribute: no RequestCycle available");
+ "Cannot set the attribute: no RequestCycle available. If you get this error when using WicketTester.startPage(Page), make sure to call WicketTester.createRequestCycle() beforehand.");
}
ISessionStore store = getSessionStore();