You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by manuel <ma...@med.cornell.edu> on 2004/10/18 22:25:05 UTC
Table component : "previous page" and "next page" links
Hello,
is there a way to make conditional the "previous page" and "next page"
links that are displayed on top of the Table component. One may want for
instance to hide these links when there is only one page to be displayed
(number of records <= pageSize).
Thanks! Manuel
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Table component : "previous page" and "next page" links
Posted by Markus Wiederkehr <ma...@gmail.com>.
Per default Table already hides the pages links if there is only one
page. If you want something special you can use TableView, TablePages,
TableColumns, TableRows and TableValues instead of Table. See
http://jakarta.apache.org/tapestry/doc/ComponentReference/contrib.Table.html
The default Table template looks like this:
<span jwcid="tableView">
<span jwcid="condPages"><span jwcid="tablePages"/></span>
<table jwcid="tableElement">
<tr><span jwcid="tableColumns"/></tr>
<tr jwcid="tableRows"><td jwcid="tableValues"/></tr>
</table>
</span>
where condPages is defined as:
<component id="condPages" type="Conditional">
<binding name="condition" expression="tableModel.pageCount > 1"/>
</component>
Markus
On Mon, 18 Oct 2004 16:25:05 -0400, manuel <ma...@med.cornell.edu> wrote:
> Hello,
> is there a way to make conditional the "previous page" and "next page"
> links that are displayed on top of the Table component. One may want for
> instance to hide these links when there is only one page to be displayed
> (number of records <= pageSize).
>
> Thanks! Manuel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org