Author: ehillenius Date: Tue Jun 5 23:12:44 2007 New Revision: 544738 URL: http://svn.apache.org/viewvc?view=rev&rev=544738 Log: moved page parameters constructor's first occurance up to Page. There wasn't a real good reason for not doing that, especially because Page and PageParameters are in the same package, and the PageParameters class is technology neutral (not bound to servlets).
Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java?view=diff&rev=544738&r1=544737&r2=544738 ============================================================================== --- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java (original) +++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java Tue Jun 5 23:12:44 2007 @@ -251,6 +251,18 @@ init(pageMap); } + /** + * Constructor. + * + * @param parameters + * externally passed parameters + * @see PageParameters + */ + protected Page(final PageParameters parameters) + { + super(null); + } + // temporary variable to pass page instance from readObject to readResolve private transient Page pageToResolve = null; @@ -511,7 +523,7 @@ } return pageMap; } - + /** * @return */ @@ -922,7 +934,7 @@ try { render(null); - } + } finally { afterRender(); @@ -1456,7 +1468,8 @@ * You can set implementation of the interface in the * [EMAIL PROTECTED] Page#serializer} then that implementation will handle the * serialization of this page. The serializePage method is called from the - * writeObject method then the implementation override the default serialization. + * writeObject method then the implementation override the default + * serialization. * * @author jcompagner */ Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java?view=diff&rev=544738&r1=544737&r2=544738 ============================================================================== --- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java (original) +++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java Tue Jun 5 23:12:44 2007 @@ -242,7 +242,7 @@ */ protected WebPage(final PageParameters parameters) { - this((IModel)null); + super(parameters); } /**