Sorry, I didn't mention that the List is wrapped in a detached model....so it's an IModel, not List in the constructor.

On 3/14/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
yes DataView works with IDataProvider instead of list. not sure why you didnt get a compile error since there is no (String,List) constructor.


there are examples of dataview and datatable under wicket-examples/repeaters

-Igor


On 3/14/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:
So, I'm trying to use a DataView so I can page a collection of objects
from a session bean.

I create the List collection (loadingModel) and pass it into the DataView:

DataView productsDataView = new DataView("productsDataView", loadingModel)

...but I'm getting an exception at runtime:

"Caused by: java.lang.ClassCastException: java.util.ArrayList"

I assume then, it's not like the ListView in that it will not take a
List directly?  Or, have I done something wrong?

Thanks!


Reply via email to