You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Geoff Callender (JIRA)" <ji...@apache.org> on 2010/07/14 16:06:51 UTC
[jira] Commented: (TAP5-1144) Would like a simple way to set
GridPager range
[ https://issues.apache.org/jira/browse/TAP5-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888354#action_12888354 ]
Geoff Callender commented on TAP5-1144:
---------------------------------------
This may not be an issue because I've since found that this kind of thing works:
java:
@Component(id = "list")
@Property
private Grid _list;
tml:
<t:grid t:id="list" t:pagerPosition="none" ...></table>
<t:gridPager currentPage="list.currentPage" rowsPerPage="..." range="..."/>
> Would like a simple way to set GridPager range
> ----------------------------------------------
>
> Key: TAP5-1144
> URL: https://issues.apache.org/jira/browse/TAP5-1144
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Reporter: Geoff Callender
>
> There are times when the default range of GridPager (5) produces too many boxes (up to 11) for the available display area.
> For example, there's no way this page can handle 11 boxes (and the ellipsis): http://jumpstart.doublenegative.com.au/jumpstart/examples/onepagecrud
> Maybe there's already an easy way to do this, but I'm thinking it would be good to allow the following:
> @InjectComponent
> private Grid _list;
> void setupRender() {
> _list.getGridPager().setRange(MY_RANGE);
> }
> However, getGridPager() and setRange() do not exist.
> Even better, provide a parameter on GridPager that specifies the maximum number of boxes?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.