Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1785

DomainService#menuOrder and DomainServiceLayout#menuOrder are not equivalent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.16.0
    • None
    • 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

            danhaywood Daniel Keir Haywood
            rkalis Rosco Kalis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: