You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Paul Bors <pa...@bors.ws> on 2014/07/14 17:20:46 UTC

Re: Custom Pagination

You're half way home.

You extended PagingNavigator but forgot to read its code.
See line 150 of PagingNavigator or better said the newNavigation() method:

	/**
	 * Create a new PagingNavigation. May be subclassed to make us of
specialized PagingNavigation.
	 *
	 * @param id
	 *            The id of the navigation component
	 * @param pageable
	 *            the pageable component
	 * @param labelProvider
	 *            The label provider for the link text.
	 * @return the navigation object
	 */
	protected PagingNavigation newNavigation(final String id, final
IPageable pageable,
		final IPagingLabelProvider labelProvider)
	{
		return new PagingNavigation(id, pageable, labelProvider);
	}

In your class, override that factory method to return the type of
PagingNavigation you want.


Also, get more familiar with that component's code. Read and understand how
those classes are related to each other:
https://github.com/apache/wicket/tree/442932d4e4c5cc27940bc2ef956cb24c1ba54df0/wicket-core/src/main/java/org/apache/wicket/markup/html/navigation/paging



On Fri, Jun 27, 2014 at 6:44 AM, K <ko...@gmail.com> wrote:

> Hey sven
>
> thanks for the reply i have resolve the issue
>
> now i have been trying to trying to implement something like
>
> << <  (textbox)  of (totalnumberofpages) > >>
>
> any suggestions on this
>
>
> -----
>
> K
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Custom-Pagination-tp4666387p4666397.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>