Author: jbq
Date: Thu Jul 12 09:21:19 2007
New Revision: 555682
URL: http://svn.apache.org/viewvc?view=rev&rev=555682
Log:
WICKET-749 ClassCastException when using ReloadingWicketFilter
Improve the documentation to mention Objects.setObjectStreamFactory(new
WicketObjectStreamFactory());
Modified:
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ReloadingWicketFilter.java
Modified:
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ReloadingWicketFilter.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ReloadingWicketFilter.java?view=diff&rev=555682&r1=555681&r2=555682
==============================================================================
---
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ReloadingWicketFilter.java
(original)
+++
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ReloadingWicketFilter.java
Thu Jul 12 09:21:19 2007
@@ -66,8 +66,8 @@
* When using Spring, the application must not be a Spring bean itself,
* otherwise the reloading mechanism won't be able to reload the application.
In
* particular, make sure <b>not</b> to use
- * org.apache.wicket.spring.SpringWebApplicationFactory in web.xml. To inject
dependencies
- * in your application, use SpringComponentInjector or
+ * org.apache.wicket.spring.SpringWebApplicationFactory in web.xml. To inject
+ * dependencies in your application, use SpringComponentInjector or
* DefaultListableBeanFactory.autowireBeanProperties() in the init() method.
* </p>
*
@@ -91,6 +91,15 @@
* It is also possible to add an extra URL to watch for changes using
* <tt>ReloadingClassLoader.addLocation()</tt> . By default, all the URL
* returned by the provided class loader are registered.
+ * </p>
+ *
+ * <p>
+ * <b>Important. </b> To enable back-button support for the reloading
mechanism,
+ * be sure to put
+ * <tt>Objects.setObjectStreamFactory(new WicketObjectStreamFactory());</tt>
+ * in your application's [EMAIL PROTECTED] WebApplication#init()} method.
<b>Native JDK
+ * object serialization will break the reloading mechanism when navigating in
+ * the browser's history.</b>
* </p>
*
* @see WicketFilter