You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2010/08/07 22:10:24 UTC

svn commit: r983303 - /wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/RatingsPage.java

Author: mgrigorov
Date: Sat Aug  7 20:10:24 2010
New Revision: 983303

URL: http://svn.apache.org/viewvc?rev=983303&view=rev
Log:
Fix RatingsPanel demo

In short: this is the *easy* fix.

Problem: 'reset' links do not reset the ratings.
Details: the demo uses _static_ models which are never serialized. The reset links' models wraps the static ones and are serialized. After deserialization the wrapped are no more linked to the static ones and don't work anymore. Making the page non-versioned solves the problem without the need to re-work the demo.


Modified:
    wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/RatingsPage.java

Modified: wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/RatingsPage.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/RatingsPage.java?rev=983303&r1=983302&r2=983303&view=diff
==============================================================================
--- wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/RatingsPage.java (original)
+++ wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/RatingsPage.java Sat Aug  7 20:10:24 2010
@@ -232,4 +232,15 @@ public class RatingsPage extends BasePag
 	{
 		return hasVoted;
 	}
+
+	/**
+	 * @see org.apache.wicket.Component#isVersioned()
+	 */
+	@Override
+	public boolean isVersioned()
+	{
+		return false;
+	}
+
+
 }