Can you show the code? When you create an anonymous inner class, it gets references to variables that are outside of the declaration.
-- Jeremy Thomerson http://www.wickettraining.com On Wed, Jul 29, 2009 at 5:46 PM, David Brown<dbr...@sexingtechnologies.com> wrote: > Hello, I have a small show-stopper with a WicketTester testcase and a Wicket > Page. The Wicket Page is a concrete Class extending WebPage. I am calling a > simple private method: init() that is nested within the Page constructor. > Inside the init() method I have an anonymous inner class constructed from a > composition: new SortableDataProvider{}; The target of the composition is > assigned to an instance variable of ISortableDataProvider which requires that > I must override the IModel model(final Object object) method. When I run > Maven test on this Page I get the following error condition: > > org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: > Unable to serialize class: java.lang.Object > > > I have tried using strategic placement of: transient and static but of no use. > > Regards, David. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org