Re: Populating dropdown

2008-02-11 Thread Roger Varley
On Monday 11 February 2008 12:01, Jayaveeran wrote:
 Hi all,

 I am populating a dropdown in my jsp which has more than 10,000 elements in
 it. Since the record size is very huge the time taken for the JSP to load
 is very high. I am using the folowing snippet to populate the dropdown. I
 am using struts framework. Is there any other way that I can populate the
 dropdown to make it faster ? Please help.


I'd recommend re-thinking your design. Even if you could make the population 
of your drop-down faster, you're still going to have some serious useability 
issues with a dropdown of that size.

Regards
Roger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Populating dropdown

2008-02-11 Thread Dave Newton
--- Jayaveeran [EMAIL PROTECTED] wrote:
 I am populating a dropdown in my jsp which has more 
 than 10,000 elements in it.

That's your first problem.

 Since the record size is very huge the time taken for the JSP to load
 is very high. I am using the folowing snippet to populate the dropdown. 
 I am using struts framework. Is there any other way that I can populate 
 the dropdown to make it faster?

Not really... As suggested, using some form of autocompleter might be a good
idea, depending on how the back end is implemented.

A dropdown with that many elements is going to cause problems on several
fronts; it might make the JSP to big (some (all?) app servers won't handle a
JSP larger than 64K), it may cause an issue in some browsers due to sheer
size, and it'll almost always render fairly slowly.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Populating dropdown

2008-02-11 Thread Rushikesh Thakkar
Better option would be: using *autocompleter* instead of select.

On Feb 11, 2008 3:01 PM, Jayaveeran [EMAIL PROTECTED] wrote:


 Hi all,

 I am populating a dropdown in my jsp which has more than 10,000 elements
 in
 it. Since the record size is very huge the time taken for the JSP to load
 is
 very high. I am using the folowing snippet to populate the dropdown. I am
 using struts framework. Is there any other way that I can populate the
 dropdown to make it faster ? Please help.


  html:select property ='id' name=Form
 onchange='%=fnDoCheck(+rowIndex.intValue()+)%' style=width:300px
  bean:define id =List property='id' name= Object/
  html:options collection=List labelProperty=value property=name/
   /html:select
 --
 View this message in context:
 http://www.nabble.com/Populating-dropdown-tp15412021p15412021.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Populating dropdown

2008-02-11 Thread Jorge Martín Cuervo
Hi,

Maybe you can divide your options in categories and use several
dropdowns with an ajax loading.

From the user point of view, large data in dropdowns are not very
usefull.

El lun, 11-02-2008 a las 06:01 -0800, Jayaveeran escribió:
 Hi all,
 
 I am populating a dropdown in my jsp which has more than 10,000 elements in
 it. Since the record size is very huge the time taken for the JSP to load is
 very high. I am using the folowing snippet to populate the dropdown. I am
 using struts framework. Is there any other way that I can populate the
 dropdown to make it faster ? Please help.   
 
 
  html:select property ='id' name=Form
 onchange='%=fnDoCheck(+rowIndex.intValue()+)%' style=width:300px
  bean:define id =List property='id' name= Object/
   html:options collection=List labelProperty=value property=name/
/html:select
-- 

Jorge Martin Cuervo
 
Outsourcing Emarketplace
deFacto Powered by Standards
 
email [EMAIL PROTECTED]
voice +34 985 129 820
voice +34 660 026 384



[...]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]