Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

How to customize GridPager component

Daniel Henze

2010-09-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Dear community,

I have some particular requirements for displaying data and did already
extend the Grid to provide some custom template. Now I have the need to
customize the grid pager as well, but am failing so far. I started off
with duplicating the code and then changed beginRender method to create
more customizable code (basically additional divs for css styling).

In my Grid class I do set the pager to my class (MatchpatchGridPager)
with standard parameters as before:

@Component(parameters = {
        "source=dataSource",
        "rowsPerPage=rowsPerPage",
        "currentPage=currentPage",
        "zone=zone" })
  private MatchPatchGridPager pager;

But when executing the code I get the following exception:

de.matchpatch.components.MatchPatchGridPager cannot be cast to
org.apache.tapestry5.corelib.components.GridPager

This approach did work fine for GridRows and GridColumns where I did
overwrite the template. What am I doing wrong here?

Thanks
Daniel



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.