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;
+ }
+
+
}