Author: jcompagner
Date: Wed Oct 31 06:35:00 2007
New Revision: 590666

URL: http://svn.apache.org/viewvc?rev=590666&view=rev
Log:
added extra constructor with pageparams and pagemap

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java?rev=590666&r1=590665&r2=590666&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java 
(original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java Wed 
Oct 31 06:35:00 2007
@@ -265,7 +265,7 @@
         * Constructor.
         * 
         * @param pageMap
-        *            the name of the page map to put this page in
+        *            the page map to put this page in
         * @param model
         *            See Component
         * @see Component#Component(String, IModel)
@@ -291,6 +291,23 @@
                super(null);
                this.parameters = parameters;
                init();
+       }
+
+       /**
+        * The [EMAIL PROTECTED] PageParameters} parameter will be stored in 
this page and then those parameters
+        * will be used to create stateless links to this bookmarkable page.
+        * 
+        * @param pageMap
+        *            the page map to put this page in
+        * @param parameters
+        *            externally passed parameters
+        * @see PageParameters
+        */
+       protected Page(final IPageMap pageMap, final PageParameters parameters)
+       {
+               super(null);
+               this.parameters = parameters;
+               init(pageMap);
        }
 
        /**


Reply via email to