You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2022/01/14 06:19:00 UTC

[jira] [Updated] (ISIS-2656) @DomainServiceLayout(name=...) seems to have no effect. Should either...

     [ https://issues.apache.org/jira/browse/ISIS-2656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andi Huber updated ISIS-2656:
-----------------------------
    Summary: @DomainServiceLayout(name=...) seems to have no effect. Should either...  (was: @DomainServiceLayout(name=...) seems not to have no effect.  Should either...)

> @DomainServiceLayout(name=...) seems to have no effect. Should either...
> ------------------------------------------------------------------------
>
>                 Key: ISIS-2656
>                 URL: https://issues.apache.org/jira/browse/ISIS-2656
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Viewer Wicket
>    Affects Versions: 2.0.0-M5
>            Reporter: Daniel Keir Haywood
>            Priority: Minor
>             Fix For: 2.0.0-M7
>
>
> It's original intent was to define the menu to slot into.  And there was some hokey stuff to do with the action (@MemberOrder) sequence from which we inferred the order of the menus themselves.
> We need to rationalise this.  I suggest:
>  * we use menubars.layout.xml to define the order of the top-level menus, with no annotation equivalent.  This is analogous to how rows, cols, fieldSets and tabs are only ever specified in object layouts with no annotation equivalent (ie the "higher level structure").
>  * we use @DomainServiceLayout(name="..." to identify the name of the menu to slot into.  Within this, sequence is used to order across all other menu services that might be contributing actions to that menu.  these would go into an un-named section of the service.
>  * We add a new element @DomainServiceLayout(sectionName=...)  If specified, then the items would go into that section, if it exists in the menubars.layout.xml, with the sequence then  being the order of actions in that section.  Again, this is the higher-level structure thing. 
>  * We would provide NO annotation for defining the order of the sections, these would only be in the menubars.layout.xml.
> to summarise:
>  * menubars.layout.xml defines the order of menus, and the order of the sections within the menus
>  * @DomainServiceLayout(name=...) - identifies the menu
>  * @DomainServiceLayout(secitonName=...) - identifies the section within that menu
>  * @ActionLayout(sequence=...) defines the order of the actions within the section of the menu.  This is either the unnamed-section (if sectionName=... is not defined) or in the explicitly named section (otherwise).
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)