I followed the example on this page
to create a SortableDataProvider.  I am running into a
NullPointerException when my Comparator class' compare method is invoked

int result = model1.getObject().compareTo(model2.getObject());

My class is exactly the same as the example code except for the type of
objects passed in to the method and used in <Type>.

The model1.getObject() is returning null.  I have confirmed in debugging
that model1 has both a valid expression and target set.

How does the object get set in a PropertyModel?

Thanks in advance!


To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to