0

combobox chose value by enter dosn't work

asked 2015-08-03 13:17:19 +0800

doeran gravatar image doeran
1

I have a combobox that is filled with database. when i enter a query in the text box I get a list, then i press down, and get first value of the list and its immediately comes in the text field, there is no delay to the movement of the list. How can I make a choice from a list in the text box by pressing enter.

my combobox:

combobox id="orgFilter" width="170px" onChanging="" autodrop="true" buttonVisible="false" class="orgFilter"></combobox>

my java class

@Listen("onChanging=#productionFilter)
public void setDeliverySites(@ContextParam(ContextType.TRIGGER_EVENT) InputEvent event) {

    String valueOrg = event.getValue();
    List<Object[]> listOrg;

        if (valueOrg.length() > 3) {

            listProduction = templatesService.getProductionSitesList(valueOrg);

                           clearComboProd();

            for (int i = 0; i < listProduction.size(); i++) {

                Comboitem it = new Comboitem();
                it.setValue(listProduction.get(i)[0]);
                it.setLabel(listProduction.get(i)[1].toString());
                it.setParent(productionFilter);

            }

        } else {

            clearComboProd();

        }

}

Thanks a lot

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-08-03 13:17:19 +0800

Seen: 18 times

Last updated: Aug 03 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More