You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2016/03/18 20:24:33 UTC
[jira] [Commented] (ISIS-687) @AutoComplete annotation on
repository does not seem to honour @MinLength
[ https://issues.apache.org/jira/browse/ISIS-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15201996#comment-15201996 ]
Dan Haywood commented on ISIS-687:
----------------------------------
to reproduce:
{code}
@DomainObject(
autoCompleteRepository = SimpleObjects.class,
autoCompleteAction = "autoComplete"
)
public class SimpleObject { ... }
{code}
and also
{code}
@Action(
semantics = SemanticsOf.IDEMPOTENT
)
public void delete(SimpleObject simpleObject) {
repositoryService.remove(simpleObject);
}
public List<SimpleObject> autoComplete(@MinLength(2) String search) {
return FluentIterable.from(listAll())
.filter(new Predicate<SimpleObject>() {
@Override public boolean apply(@Nullable final SimpleObject object) {
return object.getName().contains(search);
}
})
.toList();
}
{code}
whereas this works:
{code}
@Action(
semantics = SemanticsOf.IDEMPOTENT
)
public void delete(SimpleObject simpleObject) {
repositoryService.remove(simpleObject);
}
public List<SimpleObject> autoComplete0Delete(@MinLength(2) String search) {
return FluentIterable.from(listAll())
.filter(new Predicate<SimpleObject>() {
@Override public boolean apply(@Nullable final SimpleObject object) {
return object.getName().contains(search);
}
})
.toList();
}
{code}
> @AutoComplete annotation on repository does not seem to honour @MinLength
> -------------------------------------------------------------------------
>
> Key: ISIS-687
> URL: https://issues.apache.org/jira/browse/ISIS-687
> Project: Isis
> Issue Type: Bug
> Components: Core: Viewer: Wicket
> Affects Versions: viewer-wicket-1.3.1
> Reporter: Dan Haywood
> Assignee: Dan Haywood
> Priority: Minor
> Fix For: 1.12.0
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)