I see the same behaviour (ie no drop-down) on 1.11.1; the validate doesn't
seem to be relevant:
final ArrayList<String> addresses = Lists.newArrayList(
"Strawberry fields", "Penny Lane","Abbey Road","Octopuses
Garden","Blackburn, Lancashire","Georgia","Eiffel Tower","Isle of Wight");
public void updateStreetAddress(String field1, String field2, String
field3) {
}
public List<String> autoComplete2UpdateStreetAddress(@MinLength(3)
final String search) {
return
FluentIterable.from(addresses).filter(x ->
x.contains(search)).toList();
}
Conversely, a choices field works fine for both 1.11.1 and 1.12.1:
public List<String> choices2UpdateStreetAddress() {
return addresses;
}
Perhaps this never worked. Have you seen this work in any earlier versions?
On 5 May 2016 at 06:57, Dan Haywood <[email protected]> wrote:
> Hmm, I can't see a mistake here. Investigating...
>
> On 5 May 2016 at 03:41, Stephen Cameron <[email protected]>
> wrote:
>
>> Hi,
>>
>> I am trying to use autoCompleteNXxxx() for the first time and not having
>> any success with 1.12.1, it just doesn't seem to fire my routine at all. I
>> have the following two methods an autoComplete and a validate, the first
>> doesn't get used but the second does.
>>
>> public List<String> autoComplete2UpdateStreetAddress(@MinLength(3)
>> String search) {
>> return suburbs.listSuburbNamesLike(search);
>> }
>>
>> public String validate2UpdateStreetAddress(String name) {
>> Suburb s = suburbs.suburbForName(name);
>> if (s != null) {
>> return null;
>> } else
>> return "Unknown suburb, please check spelling and use proper
>> case";
>> }
>>
>> If someone can confirm its working for them in 1.12.1 or else tell me I
>> have made a mistake.
>>
>> Steve Cameron
>>
>
>