Hi,

The code is not easy to be read -
http://apache-wicket.1842946.n4.nabble.com/How-to-implement-pagenation-toolbar-in-wicket-1-5-11-td4665222.html
.
Please use any pastebin service.
Also use users@ mailing list, not dev@.

Martin Grigorov
Wicket Training and Consulting


On Wed, Apr 2, 2014 at 12:32 PM, ravi chaurasia <
[email protected]> wrote:

> Hi, I'm trying to migrate my application from 1.4.7 to 1.5.11. I have a
> classextending the Panel and it seems not working after the migration.My
> actual result Pagenation toolbar is not  added in the page.  Before the
> migration we are able to see thepagenation toolbar.Please let me know what
> coudl be the cause of it. How to resolved it.For
> .-----------------------------------------       public
> ABCNavigationToolbar(final XYZModelTable table) {
> super(DataTable.TOOLBAR_COMPONENT_ID);        this.table = table;
> final WebMarkupContainer span = new WebMarkupContainer("span");
> this.add(span);        span.add(new AttributeModifier("colspan", true, new
> Model(table.getColumnsCount())));
> span.add(this.newPagingNavigator("navigator", table));
> span.add(this.newNavigatorLabel("navigatorLabel", table));
> this.setRenderBodyOnly(true);        this.setEnabled(true);    }
> XYZModelTable.java      --------------------------------
>  public abstract class
> XYZModelTable extends Panel implements IPageable {    private static final
> long serialVersionUID = 1L;    public static final String
> TOOLBAR_COMPONENT_ID = "toolbar";    private final WebMarkupContainer body;
> private final RepeatingView bottomToolbars;    private String columnCount =
> "1";    private final AbstractAfmeldingDataGridView datagrid;    public
> XYZModelTable(final String id, final IDataProvider dataProvider,
> final int rowsPerPage) {        super(id);        this.body =
> this.newBodyContainer("body");        this.datagrid =
> this.createDataView(dataProvider, rowsPerPage);        this.columnCount =
> this.datagrid.getColumnCount();        this.body.add(this.datagrid);
> this.add(this.body);        this.bottomToolbars = new
> ToolbarsContainer("bottomToolbars");        this.add(this.bottomToolbars);
> this.add(new Label("rowCount", String.valueOf(getRowCount())));
> this.addGMVNavigationToolbar();    }
>  ABCNavigationToolbar.html(Markup
> page)   -------------------------------------
>
> [navigator-label]
>
> [navigator]
>                         XYZModelTable.html
> -------------------------------
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-implement-pagenation-toolbar-in-wicket-1-5-11-tp4665222.html
> Sent from the Forum for Wicket Core developers mailing list archive at
> Nabble.com.

Reply via email to