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, VGJ <[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!


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to