You can also check out this wiki page:
http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
Basically the DefaultDatatable takes:
1. an array of TableColumn extending classes that are used to build the
cell component and connect the row object (typically each column would
be connected to a field in the row object).
2. an IDataProvider implementation which provides the table row data.
Within it you provide the total number of elements/rows and an iterator
containg a specific page.
3. the number of rows per page.
The DefaultDataTable has built in support for pagination (i.e. it adds
in a set of default top and bottom toolbars) If you look in the
constructor you can see what I mean.
The last example in the wicketstuff.org example Michael referenced shows
what this looks like.
Regards,
Mike
Check out the wicket examples (especially those on repeaters on
http://www.wicketstuff.org/wicket13/repeater/) - they'll help you getting
started
regards,
Michael
PSkarthic wrote:
Hi
I worked on wicket for a month only, i want pagination to be done in
wicket.
Can anybody guide me or provide some samples, it would be big help for me.
I have tried googling "Pagination in wicket" but not yet get the
solution.
I have also tried Pagenavigator but don't know how to use it
correctly(Stuck in creating the dataview
Thanks in advance
Karthic
-----
Michael Sparer
http://talk-on-tech.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]