NOTE: This classes is internal and may be changed incompatibly or deleted in the future. It is public only so it may be used by subpackages.
This class defines a view and takes care of reading and updating indices, calling bindings, constraining access to a key range, etc.
@author Mark HayesExample:
<tbody> <tr wicket:id="rows"> <td><span wicket:id="id">Test ID</span></td> ...
Though this example is about a HTML table, DataView is not at all limited to HTML tables. Any kind of list can be rendered using DataView.
And the related Java code:
add(new DataView<UserDetails>("rows", dataProvider) { public void populateItem(final Item<UserDetails> item) { final UserDetails user = item.getModelObject(); item.add(new Label("id", user.getId())); } });@see IDataProvider @see IPageable @author Igor Vaynberg (ivaynberg) @param < T> The Model type.
|
|