myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Udo Schnurpfeil <...@schnurpfeil.de>
Subject Re: [Tobago] How to display all records in one page in tc:sheet
Date Tue, 29 May 2007 21:00:26 GMT
Alternativly you cat set the value to Integer.|MAX_VALUE 
<http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#MAX_VALUE>| 
= |2147483647|

Regards,

Udo

Volker Weber schrieb:
> Hi Vinay,
>
> the default for rows is 100, to ensure all rows are rendered you can 
> use a
> binding on rows:
>
> rows="#{empDetails.detailItemListSize}"
>
> with
>
> public int getDetailItemListSize() {
>  return detailItemList.size();
> }
>
>
> Regards,
>    Volker
>
>
>
> 2007/5/29, Vinay Konanki <vinay.tobago@gmail.com>:
>> Hi All,
>>
>> I need to display around 200 records in the Sheet. but my client's
>> requirement is we should not use pagination, all the records should be
>> display in one page.
>>
>> For this i removed pagination attributes in tc:sheet Controller, but 
>> problem
>> is
>>
>> Its not displaying all 200 records, its showing around 100 -120 
>> records. (I
>> dont know why this happening)
>> I used following attributies for tc:sheet controller
>>
>> <tc:sheet value= "#{empDetails.detailItemList }"
>>                            id="empDetailsSheet"
>>
>> columns="45px;48px;97px;67px;46px;74px;30px;62px;89px;76px;82px"
>>                         var="empDetails"
>>                         showHeader="true"
>>                         selectable="none">
>>
>> But when i use following setting its showing all records (Here i'm 
>> defining
>> no of rows="500", But this is not encouraged as there may be more 
>> than 500
>> records in another case)
>>
>> <tc:sheet value= "#{empDetails.detailItemList}"
>>                             id="empDetailsSheet"
>>
>> columns="45px;48px;97px;67px;46px;74px;30px;62px;89px;76px;82px"
>>                          var="empDetails"
>>                         rows="500"
>>                          showHeader="true"
>>                          selectable="none">
>>
>> So what should i do, So that all records should come in one page
>> irrespective of no of records?
>>
>> Any kind of help will be greatly appreciated.
>>
>> Thanks,
>> Vinay
>>
>


Mime
View raw message