You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/06/23 15:50:16 UTC

[jira] [Commented] (ISIS-1359) Action annotated as autoCompleteAction cannot be annotated with @Programmatic. This should be possible.

    [ https://issues.apache.org/jira/browse/ISIS-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15346647#comment-15346647 ] 

ASF subversion and git services commented on ISIS-1359:
-------------------------------------------------------

Commit fbf5a459da5dddebbe49bd33093ab120cfa6c2d5 in isis's branch refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=fbf5a45 ]

ISIS-1359: enables autocomplete methods to be annotated as @Programmatic.

This is done by working directly with the Java reflection API, rather than through the Isis metamodel.

In addition:
- adds metamodel validation to ensure that the specified repository and method exist.
- updates documentation.


> Action annotated as autoCompleteAction cannot be annotated with @Programmatic. This should be possible.
> -------------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-1359
>                 URL: https://issues.apache.org/jira/browse/ISIS-1359
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.12.0
>            Reporter: Johan Doornenbal
>            Assignee: Dan Haywood
>             Fix For: 1.13.0
>
>
> For instance:
> {code}
> @DomainObject(
> autoCompleteRepository = Currencies.class, autoCompleteAction = "autoComplete")
> public class Currency ....
> {code}
> Then in Currencies class:
> {code}
> @Programmatic
>  public List<Currency> autoComplete(...) ..
> {code}
> causes a NPE



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)