You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2008/02/11 02:42:11 UTC
svn commit: r620374 -
/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java
Author: knopp
Date: Sun Feb 10 17:41:59 2008
New Revision: 620374
URL: http://svn.apache.org/viewvc?rev=620374&view=rev
Log:
use isPageStateless() instead of getStatelessHint to determine if page is stateless
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java?rev=620374&r1=620373&r2=620374&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java Sun Feb 10 17:41:59 2008
@@ -56,7 +56,7 @@
* a no-arg constructor or with a constructor that accepts a PageParameters argument (which wraps
* any query string parameters for a request). In case the page has both constructors, the
* constructor with PageParameters will be used.
- *
+ *
* @author Jonathan Locke
* @author Eelco Hillenius
* @author Juergen Donnerstag
@@ -79,7 +79,7 @@
/**
* Construct.
- *
+ *
* @param webPage
*/
PageMapChecker(WebPage webPage)
@@ -97,7 +97,7 @@
final IRequestTarget target = cycle.getRequestTarget();
// we don't want to render this for stateless pages
- if (webPage.getStatelessHint())
+ if (webPage.isPageStateless())
{
return;
}
@@ -220,10 +220,10 @@
* Note that nothing is done with the page parameters argument. This constructor is provided so
* that tools such as IDEs will include it their list of suggested constructors for derived
* classes.
- *
+ *
* Please call this constructor (or the one with the pagemap) if you want to remember the
* pageparameters {@link #getPageParameters()}. So that they are reused for stateless links.
- *
+ *
* @param parameters
* Wrapped query string parameters.
*/
@@ -241,10 +241,10 @@
* Note that nothing is done with the page parameters argument. This constructor is provided so
* that tools such as IDEs will include it their list of suggested constructors for derived
* classes.
- *
+ *
* Please call this constructor (or the one without the pagemap) if you want to remember the
* pageparameters {@link #getPageParameters()}. So that they are reused for stateless links.
- *
+ *
* @param pageMap
* The pagemap where the webpage needs to be constructed in.
* @param parameters
@@ -261,7 +261,7 @@
* markup language, such as VXML, would require the creation of a different Page subclass in an
* appropriate package under org.apache.wicket.markup. To support VXML (voice markup), one might
* create the package org.apache.wicket.markup.vxml and a subclass of Page called VoicePage.
- *
+ *
* @return Markup type for HTML
*/
public String getMarkupType()
@@ -272,18 +272,18 @@
/**
* This method is called when the compressing coding and response strategies are configured in
* your Application object like this:
- *
+ *
* <pre>
* protected IRequestCycleProcessor newRequestCycleProcessor()
* {
* return new UrlCompressingWebRequestProcessor();
* }
* </pre>
- *
+ *
* @return The URLCompressor for this webpage.
- *
+ *
* @since 1.2
- *
+ *
* @see UrlCompressingWebRequestProcessor
* @see UrlCompressor
*/
@@ -345,15 +345,15 @@
/**
* Subclasses can override this to set there headers when the Page is being served. By default 2
* headers will be set
- *
+ *
* <pre>
* response.setHeader("Pragma", "no-cache");
* response.setHeader("Cache-Control", "no-cache, max-age=0, must-revalidate");
* </pre>
- *
+ *
* So if a Page wants to control this or doesn't want to set this info it should override this
* method and don't call super.
- *
+ *
* @param response
* The WebResponse where set(Date)Header can be called on.
*/
@@ -374,7 +374,7 @@
/**
* Creates and returns a bookmarkable link to this application's home page.
- *
+ *
* @param id
* Name of link
* @return Link to home page for this application
@@ -385,7 +385,7 @@
}
/**
- *
+ *
* @see org.apache.wicket.Component#onDetach()
*/
protected void onDetach()