Re: [OT] Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread xianwinwin
.dave wrote: > > No CC. Just list. I don't need two copies of all list traffic. > > > --- On Fri, 6/13/08, Onur Idrisoglu <[EMAIL PROTECTED]> wrote: > >> From: Onur Idrisoglu <[EMAIL PROTECTED]> >> Subject: Re: struts2: how to read the 'potenria

[OT] Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread Dave Newton
No CC. Just list. I don't need two copies of all list traffic. --- On Fri, 6/13/08, Onur Idrisoglu <[EMAIL PROTECTED]> wrote: > From: Onur Idrisoglu <[EMAIL PROTECTED]> > Subject: Re: struts2: how to read the 'potenrial list' from a database > To: "Stru

Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread Onur Idrisoglu
I'm not sure if you can do that with autocompleter.. Autocompleter need the whole list at startup, but as I understand you want to shape this list dynamically according to what user types. Each time user types a character, the action will create a new list... Maybe you can use DWR to do this On F

Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, srichin <[EMAIL PROTECTED]> wrote: > I want the objects id to be the value of the option and > code to bethe label to be shown in the autocompleter dropdown options. > > I should be shown codes as select options in the dropdown and when I > select any of the code, the corresp

Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread srichin
OTECTED]> wrote: > >> From: xianwinwin <[EMAIL PROTECTED]> >> Subject: struts2: how to read the 'potenrial list' from a database >> To: user@struts.apache.org >> Date: Thursday, June 12, 2008, 6:07 PM >> I have a list of 20,000 cities; I

Re: struts2: how to read the 'potenrial list' from a database

2008-06-12 Thread Dave Newton
Search a database of city names? I'm not sure what you're asking. --- On Thu, 6/12/08, xianwinwin <[EMAIL PROTECTED]> wrote: > From: xianwinwin <[EMAIL PROTECTED]> > Subject: struts2: how to read the 'potenrial list' from a database > To: user@struts.a

struts2: how to read the 'potenrial list' from a database

2008-06-12 Thread xianwinwin
I have a list of 20,000 cities; I would like the user to provide at least 2 chars and then present him a'potential list'. I managed to do this: JSP Java: public class autocompleter extends ActionSupport { private List state; public String execute() throws Exception{ state = new Arr