You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2007/03/11 02:13:24 UTC

svn commit: r516823 - /incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java

Author: ehillenius
Date: Sat Mar 10 17:13:23 2007
New Revision: 516823

URL: http://svn.apache.org/viewvc?view=rev&rev=516823
Log:
WICKET-215

Modified:
    incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java

Modified: incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java?view=diff&rev=516823&r1=516822&r2=516823
==============================================================================
--- incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java (original)
+++ incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/WebApplication.java Sat Mar 10 17:13:23 2007
@@ -310,6 +310,8 @@
 	 *            pagemap this mount is for
 	 * @param bookmarkablePageClass
 	 *            the bookmarkable page class to mount
+	 * @deprecated You won't be able to use this mount. Use
+	 *             {@link #mountBookmarkablePage(String, String, Class)} instead
 	 */
 	public final void mountBookmarkablePage(final String path, final PageMap pageMap,
 			final Class bookmarkablePageClass)
@@ -317,6 +319,24 @@
 		checkMountPath(path);
 		mount(path, new BookmarkablePageRequestTargetUrlCodingStrategy(path, bookmarkablePageClass,
 				pageMap.getName()));
+	}
+
+	/**
+	 * Mounts a bookmarkable page class to the given pagemap and path.
+	 * 
+	 * @param path
+	 *            the path to mount the bookmarkable page class on
+	 * @param pageMapName
+	 *            name of the pagemap this mount is for
+	 * @param bookmarkablePageClass
+	 *            the bookmarkable page class to mount
+	 */
+	public final void mountBookmarkablePage(final String path, final String pageMapName,
+			final Class bookmarkablePageClass)
+	{
+		checkMountPath(path);
+		mount(path, new BookmarkablePageRequestTargetUrlCodingStrategy(path, bookmarkablePageClass,
+				pageMapName));
 	}
 
 	/**