there is also a DataTable component which wraps DataView+paging+sorting.

-Igor


On 3/14/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:
I'm using 1.1.1  Are there any plans to whittle down the amount of code it takes to implement paging & sorting?  Has it changed at all in 1.2?  I spent a lot of time w/ ASP.NET (which wicket feels quite similar to) and there's a DataGrid component that has properties to set paging & sorting w/o any extra work.  Something like that would be really convenient.


On 3/14/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
are you using 1.1 ? or 1.2 ?
there used to be a constructor that took model in 1.1 i think. the model object must be of type IDataProvider.


-Igor


On 3/14/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
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