Hi,
I am using Struts 2.1.8 and the Dojo plugin.
What i am trying to realize is the following :
the user has to fill a field that corresponds to a REFERENCEID. I want to help 
that user to type in the REFERENCEID
by suggesting 20 REFERENCEID as soon as he types in a digit.
For instance, if he types in 1, i want to make a SQL request in the database 
and bring the 20 first REFERENCEID that start with 1.
Then if the user types 13, i do another SQL request and bring the  20 first 
REFERENCEID that start with 13.
And so on.

Has anyone done that ? I would be interested in sample code.

Is there a component in Dojo that already does that ?

I am looking for something a bit like this demo with Ext JS : 
http://www.extjs.com/deploy/dev/examples/form/forum-search.html

Also, does that field have to be a combobox ? can it be a text input  (<input 
type="text" >)?
If it is a text input tag, where do i display the result (20 suggestions) ? In 
a DIV ?


I am using Struts 2 which, as you know, comes with a nice plugin for Dojo. 
So I have <sx:div> and <sx:bind> tags at my disposal. 

Thanks for helping with sample code or any suggestion that might help.


      

Reply via email to