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

Service priority as defined by @DomainServiceLayout#menuOrder or @DomainService#menuOrder not honored.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.15.0
    • 1.15.1
    • Core
    • None

    Description

      It seems menu contributing service's will not always produce submenus ordered correctly:

      I found a case, where menuOrder was not honored while 2 menu-services were both contributing to the same menu. The member sequence for each group was correct, but the order of the groups was wrong.

      @DomainService(nature = NatureOfService.VIEW_MENU_ONLY)
      @DomainServiceLayout(named="TODO", menuOrder="30.2")
      public class A {
      
          @Action
          @MemberOrder(sequence = "1.1")
          public void getAProperty() {
              
          }
      
      }
      
      @DomainService(nature=NatureOfService.VIEW_MENU_ONLY)
      @DomainServiceLayout(named="TODO", menuOrder="30.1")
      public class B {
      
          @Action
          @MemberOrder(sequence = "1.1")
          public void getBProperty() {
              
          }
      
      }
      

      Menu group B should be positioned above group A, but it sometimes is not.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            danhaywood Daniel Keir Haywood
            hobrom Andi Huber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment