/* Note we say Y.one(parent.getDOMNode()) and not only parent because we need the parent
node to load the new YUI sandbox with AC: */
String[] source1 = new String[]{"ab", "abc", "abcd", "abc dfgh", "abcdfg"};
Node inputEl2 = Y.one(parent.getDOMNode()).
appendChild("<input type=\"text\" id=\"ac-input\" value=\"someval\"></input>");
inputEl2.plug(Y.Plugin().AutoComplete(), AutoCompleteConfig.create().
resultHighlighter("phraseMatch").resultFilters("phraseMatch").
source(source1)
);
Node inputEl = Y.one(parent.getDOMNode()).
appendChild("<input type=\"text\" id=\"ac-input\" value=\"a\"></input>");
inputEl.plug(Y.Plugin().AutoComplete(), AutoCompleteConfig.create().
resultHighlighter("phraseMatch").resultFilters("phraseMatch").
source(new String[]{"ab", "abc", "abcd", "abc dfgh", "abcdfg"}).render(true));
AutoComplete ac = Y.newAutoComplete(AutoCompleteConfig.create().
resultHighlighter("phraseMatch").resultFilters("phraseMatch").