-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Hi All,
I want my Combobox to be Autosuggest box, where I am fetching all products. Now to make Combobox autosuggest I a understand the only option is to load it using setModel function.
But the problem I am facing here is if I set String array like below, I can't get the product id of it. (ListModel lml=new SimpleListModel(Dictionary.getDirectory()))
For now I am not fetching product list from the DB, it's just from the server - JVM.
Please help me solve the issue.
2 | No.2 Revision |
Hi All,
I want my Combobox to be Autosuggest box, where I am fetching all products. Now to make Combobox autosuggest I a understand the only option is to load it using setModel function.
But the problem I am facing here is if I set String array like below, I can't get the product id of it.
it.
(ListModel lml=new SimpleListModel(Dictionary.getDirectory()))
For now I am not fetching product list from the DB, it's just from the server - JVM.
Please help me solve the issue.
3 | No.3 Revision |
Hi All,
I want my Combobox to be Autosuggest box, where I am fetching all products. Now to make Combobox autosuggest I a understand the only option is to load it using setModel function.
But the problem I am facing here is if I set String array like below, I can't get the product id of it.
(ListModel lml=new SimpleListModel(Dictionary.getDirectory()))
For now I am not fetching product list have taken reference from the DB, it's just from the server - JVM.w3.zkoss.org/zkdemo/combobox/autocomplete
Please help me solve the issue.
4 | Added ZKFiddle |
Hi All,
I want my Combobox to be Autosuggest box, where I am fetching all products. Now to make Combobox autosuggest I a understand the only option is to load it using setModel function.
But the problem I am facing here is if I set String array like below, I can't get the product id of it.
(ListModel lml=new SimpleListModel(Dictionary.getDirectory()))
I have taken reference from w3.zkoss.org/zkdemo/combobox/autocomplete
Please help me solve the issue.
Here is the fiddle that has the example, currently I am setting all values in combobox, which I want to be Key-Value pairs. zkfiddle.org/sample/3ifu29k/6-Another-new-ZK-fiddle