I want to create a PageableListView with these arguments:
public PageableListView(final String id, final IModel<? extends List<T>> model
but the second argument final IModel<? extends List<T>> model confuses me abit. I have a list List<Individual> individualList which has some properties I want to use for the PageableListView I'm making. My problem is that I don't know how to cast it, or make it an acceptable argument.
Here is what I was working with:
 List<Individual> individualList = getIndividuals();
 WebMarkupContainer datacontainer = new WebMarkupContainer("data");
 datacontainer.setOutputMarkupId(true);
 add(datacontainer);
PageableListView listview = new PageableListView("rows", individualList, 10) {
        @Override
        protected void populateItem(ListItem item)
        {
            Individual individual = item.getModelObject();
            item.add(new Label("individual_Id", String.valueOf(individual.getId())));
            item.add(new Label("name", individual.getFirstName()));
    };
    datacontainer.add(listview);
    datacontainer.add(new AjaxPagingNavigator("navigator", listview));
    datacontainer.setVersioned(false);
on the line with Individual individual = item.getModelObject(); it gives me error with Type mismatch: cannot convert from Object to IndividualCache.
 
    