Hi Pierre, Associate your PageableListView with a <div> that wraps your two <tr>s. Use item.setRenderBodyOnly(true) to prevent the <div> from being rendered so your table markup is still valid.
Dan On Mon, Jun 10, 2013 at 12:49 PM, Pierre Goupil <goupilpie...@gmail.com>wrote: > Good evening, > > Is there a way to have a PageableListView with two rows? > > Here is my code: > > final PageableListView<Profile> columnListView = new > PageableListView<Profile>( > "columnListView", secondLine, SearchPage.RESULTS / 2) > { > private static final long serialVersionUID = 1L; > > @Override > protected void populateItem(final ListItem<Profile> item) > { > final IModel<Profile> p = item.getModel(); > > item.add(new ProfilePanel("profile", p)); > } > }; > > this.add(columnListView); > this.add(new AjaxPagingNavigator("navigator", columnListView)); > > It works perfectly well for one line of results, but I'd like to have two > lines of 4 columns instead of one line of 8 columns. > > I don't think a DataTable would fit my needs since the ProfilePanel object > is a complex display. > > Any help will be much appreciated. > > Regards, > > Pierre > > > -- > "Un truc bien avec la musique, c'est que quand elle te frappe, tu n'as pas > mal. > Alors frappez-moi de musique ! > Frappez-moi de musique, maintenant !" > > (Bob Marley : "Trenchtown Rock") >