You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tomáš Drenčák <to...@gmail.com> on 2005/09/25 22:15:57 UTC
Contrib table pageSize
Hi all,
I have a problem with contrib table concrete it's pageSize binding.
When I set source/columns binding pair pageSize everythin is ok (if I
set pageSize equals 50 I saw fifty rows in table) but moving to single
tableModel binding this looks not working (whatever I set to pageSize
there're still 10 rows displayed). Is there something to set in
ITableModel or some trick?
I have debugged page and saw that pageSize attribute is set for my
value (e.g. pageSize = 50) but the table is displayed with 10 rows.
Thanks
tomas
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Contrib table pageSize
Posted by Tomáš Drenčák <to...@gmail.com>.
Thanks, It's my fault, I haven't read documentation to the end...:)
2005/9/25, Mind Bridge <mi...@yahoo.com>:
> Hi,
>
> Perform the following on your table model to set the page size:
>
> tableModel.getPagingState().setPageSize(50);
>
> The 'pageSize' parameter is a shortcut only used with source/columns --
> I believe this is mentioned in the documentation as well.
>
> Best regards,
> -mb
>
> Tomáš Drenčák wrote:
>
> >Hi all,
> >I have a problem with contrib table concrete it's pageSize binding.
> >When I set source/columns binding pair pageSize everythin is ok (if I
> >set pageSize equals 50 I saw fifty rows in table) but moving to single
> >tableModel binding this looks not working (whatever I set to pageSize
> >there're still 10 rows displayed). Is there something to set in
> >ITableModel or some trick?
> >
> >I have debugged page and saw that pageSize attribute is set for my
> >value (e.g. pageSize = 50) but the table is displayed with 10 rows.
> >
> >Thanks
> > tomas
> >
> >---------------------------------------------------------------------
> >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
>
>
Re: Contrib table pageSize
Posted by Mind Bridge <mi...@yahoo.com>.
Hi,
Perform the following on your table model to set the page size:
tableModel.getPagingState().setPageSize(50);
The 'pageSize' parameter is a shortcut only used with source/columns --
I believe this is mentioned in the documentation as well.
Best regards,
-mb
Tomáš Drenčák wrote:
>Hi all,
>I have a problem with contrib table concrete it's pageSize binding.
>When I set source/columns binding pair pageSize everythin is ok (if I
>set pageSize equals 50 I saw fifty rows in table) but moving to single
>tableModel binding this looks not working (whatever I set to pageSize
>there're still 10 rows displayed). Is there something to set in
>ITableModel or some trick?
>
>I have debugged page and saw that pageSize attribute is set for my
>value (e.g. pageSize = 50) but the table is displayed with 10 rows.
>
>Thanks
> tomas
>
>---------------------------------------------------------------------
>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