I have following method:
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(named = "Find alphabet Soup by Letter", bookmarking = BookmarkPolicy.AS_ROOT)
@MemberOrder(name = "Menu soups", sequence = "7")
public List<SomeObject> findByLetter(@ParameterLayout(named = "letter") final String letter) {
return container.allMatches(new QueryDefault<SoupObject>(SoupObject.class, "findSoupQuery", "letter", letter));
}
I want that the Input-field for the parameter letter
is a dropdown-list with autoCompletion.
So I added the autoComplete function:
public Collection<String> autoComplete0FindByLetter(@MinLength(3) String search) {
List<String> ret = new ArrayList<String>();
SoupFinder soupFinder = new SoupFinder();
List<SoupObject> soups = soupFinder.findByLetter(search);
for (SoupObject tmpSoup : soups) {
ret.add(tmpSoup.getName(());
}
return ret;
}
So my problem is now: When I use the function findByLetter
in the Wicked UI there is no dropdown field for the parameter letter
.
Why is there no dropdown field respectively why does the autoComplete function not work. Did I forget something?
Thanks for your answers.