Author: ivaynberg
Date: Fri Sep 26 22:13:26 2008
New Revision: 699556
URL: http://svn.apache.org/viewvc?rev=699556&view=rev
Log:
WICKET-1765
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/Page.java
Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/Page.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/Page.java?rev=699556&r1=699555&r2=699556&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/Page.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/Page.java Fri Sep 26
22:13:26 2008
@@ -727,7 +727,7 @@
}
/**
- * Determine the "statelessness" of the page while not changing the
cached value.
+ * Determine the "statelessness" of the page while not changing the
cached value.
*
* @return boolean value
*/
@@ -738,7 +738,7 @@
stateless = old;
return res;
}
-
+
/**
* Gets whether the page is stateless. Components on stateless page
must not render any
* statefull urls, and components on statefull page must not render any
stateless urls.
@@ -1613,4 +1613,12 @@
public void onPageAttached()
{
}
+
+ @Override
+ public String getMarkupType()
+ {
+ throw new UnsupportedOperationException(
+ "Page does not support markup. This error can happen if
you have extended Page directly, instead extend WebPage");
+ }
+
}