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

DomainService#menuOrder and DomainServiceLayout#menuOrder are not equivalent

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.16.0
    • Component/s: None
    • Labels:
      None

      Description

      The Apache Isis documentation mentions that these two options are equivalent:

           * <p>
           *     Either this attribute or {@link DomainServiceLayout#menuOrder()} can be used; they are equivalent.
           *     Typically this attribute is used for services with a {@link #nature() nature} of
           *     {@link NatureOfService#DOMAIN domain} (these are not visible in the UI) whereas
           *     {@link DomainServiceLayout#menuOrder()} is used for services with a nature of
           *     {@link NatureOfService#VIEW_MENU_ONLY} (which do appear in the UI)
           * </p>
      

      However, using DomainService#menuOrder on NatureOfService#VIEW_MENU_ONLY services did not appear to work correctly. DomainServiceLayout#menuOrder does appear to be working.

      Our application was using DomainService#menuOrder in this commit, after which we changed to DomainServiceLayout#menuOrder in the next commit

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              rkalis Rosco Kalis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: