Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1359

Action annotated as autoCompleteAction cannot be annotated with @Programmatic. This should be possible.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.13.0
    • Component/s: Core
    • Labels:
      None

      Description

      For instance:

      @DomainObject(
      autoCompleteRepository = Currencies.class, autoCompleteAction = "autoComplete")
      public class Currency ....
      

      Then in Currencies class:

      @Programmatic
       public List<Currency> autoComplete(...) ..
      

      causes a NPE

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit fbf5a459da5dddebbe49bd33093ab120cfa6c2d5 in isis's branch refs/heads/master from Dan Haywood
        [ 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.
        Show
        jira-bot ASF subversion and git services added a comment - Commit fbf5a459da5dddebbe49bd33093ab120cfa6c2d5 in isis's branch refs/heads/master from Dan Haywood [ 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.

          People

          • Assignee:
            danhaywood Dan Haywood
            Reporter:
            johandoornenbal Johan Doornenbal
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development