textField.setOnKeyUp("javascript:autoCompleteUpdateValueField('" + textField.getId() + "', '" + TYPING_VALUE + "');");
textField.setOnKeyDown("javascript:autoCompleteKeyDownHandler(event, '" + textField.getId() +"');"); textField.setOnKeyUp("javascript:autoCompleteKeyUpHandler(event, '" + textField.getId() + "', '" + TYPING_VALUE + "');");
            public HtmlComponent createComponent(Object object, Class type) {                                HtmlInlineContainer container = new HtmlInlineContainer();                addScripts(container);                                MetaSlotKey key = (MetaSlotKey) getContext().getMetaObject().getKey();                                HtmlHiddenField valueField = new HtmlHiddenField();                valueField.setTargetSlot(key);                valueField.setId(key.toString() + "_AutoComplete");                valueField.setName(valueField.getId());                container.addChild(valueField);                valueField.setConverter(new AutoCompleteConverter(getClassName()));                                HtmlTextInput textField = new HtmlTextInput();                textField.setId(key.toString());                textField.setName(textField.getId());                textField.setClasses(getTextFieldStyleClass());                textField.setSize(getSize());                textField.setOnKeyUp("javascript:autoCompleteUpdateValueField('" + textField.getId() + "', '" + TYPING_VALUE + "');");                container.addChild(textField);                if (getRawSlotName() != null) {                    textField.setController(new UpdateRawNameController(getRawSlotName()));                }                                HtmlBlockContainer resultsContainer = new HtmlBlockContainer();                resultsContainer.setId(key.toString() + "_div");                resultsContainer.setClasses(getAutoCompleteStyleClass());                container.addChild(resultsContainer);                                addFinalScript(container, textField.getId(), resultsContainer.getId());                                return container;            }