Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro Java
|
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 1st, 2006, 11:08 AM
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem Regarding Pagination!!!!!!!!!!!

I have to provide pagination. I am using the dhtmlXGrid to view the Resultset which is form of an XML.The XML has a large set of records. The grid does not support pagination. So i decided to create my own pagination class. I am creating a Hashmap out of the XML and then i am retriving the particular requested page values from the HashMap.the problem is iterating through the HashMap.Please suggest a better approach to iterate. I thought of converting the HashMap to an array list . can there be any other method for fast retrival

please help

 
Old August 1st, 2006, 02:46 PM
Authorized User
 
Join Date: Jun 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well i usually use the enumerator , can u check wheter that gives u a faster response

 
Old August 3rd, 2006, 08:06 AM
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the problem with enumerator is that we need to itearte through the whole Hashmap to get a certain set of values..since its not indexable so the pagination problem has to be loooked in context with the indexes






Similar Threads
Thread Thread Starter Forum Replies Last Post
Pagination problem nanetsu Other Programming Languages 1 June 12th, 2008 06:12 AM
pagination problem solos XSLT 1 April 4th, 2007 05:40 PM
Please.....Pagination junemo PHP Databases 2 September 25th, 2004 01:14 PM
Problem with pagination fung Classic ASP Basics 4 August 23rd, 2004 07:42 AM
pagination junemo Oracle 0 July 1st, 2004 04:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.