That's great. Can you send me your source code, it could help me a lot on my
next project. I would like to implement paginated list since we need to display
millions of records for thousands of users that would be a great help. That is
if its ok with you.
Thanks in advance,
Emerson
Check me out!
--- On Thu, 28/1/10, Eric Miles <eric.a.mi...@gmail.com> wrote:
From: Eric Miles <eric.a.mi...@gmail.com>
Subject: Re: [displaytag-user] Multiple tables on one page
To: displaytag-user@lists.sourceforge.net
Date: Thursday, 28 January, 2010, 5:32 AM
To all:
I finally figured out how to put multiple tables on one page without pagination
of one table affecting the other. The 'PaginatedList' does nothing for you if
you want to have multiple tables because it generates "page=X" parameter/value
pairs in the request url regardless of using the 'id' or 'uid' attributes.
There is no way to differentiate which table is paging. You have to use the
ParamEncoder class for multiple tables (not needed for a single table) to
decode which table is paging or sorting. Also, my whole purpose was to avoid
retrieving all records, I just want to retrieve 1 page worth and leave the
other million+ records in the database.
Anyway, I ended up extending the PaginatedList class and adding the ability for
it to be used 1 or multiple times on the same page.
I am using version 1.1.1. I have not upgraded to 1.2 because of project
restrictions.
On Mon, Jan 25, 2010 at 9:59 PM, Eric Miles <eric.a.mi...@gmail.com> wrote:
Are you using a PaginatedList class? I want to handle paging and sorting
externally because I only want to retrieve 1 page worth of records from the
database instead of possibly millions of records.
I'm currently working on implementing this solution:
http://code.google.com/p/pagingappfuse/wiki/PagingSorting
Thanks.
2010/1/25 emerson sanchez <es_sanch...@yahoo.com>
I was able to implement multiple tables in one page and got no problem like
yours. Each table's pagination works separately. I just used uid and ommmited
the id attribute. Hope this helps.
Cheers,
Emerson
Check me out!
--- On Tue, 26/1/10, Naveen Namburi <naveennamb...@gmail.com> wrote:
From: Naveen Namburi <naveennamb...@gmail.com>
Subject: Re: [displaytag-user] Multiple tables on one
page
To: displaytag-user@lists.sourceforge.net
Date: Tuesday, 26 January, 2010, 5:55 AM
try using different id names for your 2 tables in same page.
2010/1/25 Eric Miles <eric.a.mi...@gmail.com>
Thanks Narcis for your response. I was under the impression that setting the
'id' attribute would add a parameter/value pair in the url or do something to
differentiate between 2 display tables on the same page. My first impression
with the displaytag taglib is that documentation is not in agreement with
implementation. Has anyone gotten 2 displaytag's working on the same page with
independent paging and sorting of partial lists?
2010/1/22 Paslaru Narcis <paslaru.nar...@gmail.com>
Hello,
You may try to put a parameter in the requestUri for each table. The parameter
should be called tableName and use it as a discriminator in your
servlet/action/etc.
Cheers,
Narcis
2010/1/22 Eric Miles <eric.a.mi...@gmail.com>
I’m using 2 tables in one JSP page. Each table is connected to its own
PaginatedList object so that I can retrieve partial lists from the database,
etc.
Here’s the problem:
Let’s say table1 has 3 pages and table2 has 2 pages. When I go to page 2 on
table1, table2 also changes to page 2. How can I uniquely id each of the
tables? I’ve tried using the ‘id’ parameter, the ‘uid’ parameter but the URL
always displays ‘page=2’, so when I retrieve the data for each table, the code
cannot differentiate which table wants a different page. Using ‘id’ and ‘uid’
doesn’t seem to do anything.
Are there any examples out there? The documentation is very bleak in this area.
Thanks in advance.
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-----Inline Attachment Follows-----
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-----Inline Attachment Follows-----
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user