Menu bars
The menuBar() element is a hint to specify where on the application menu a domain service’s actions should be rendered.
For example:
@DomainService
@DomainServiceLayout(menuBar=MenuBar.PRIMARY)
public class ToDoItems {
...
}
In the Web UI (Wicket viewer), domain services placed:
-
on the
PRIMARYmenu bar appears to the left. -
on the
SECONDARYmenu bar appear to the right: -
on the
TERTIARYappear in the menu bar associated with the user’s name (far top-right)
The grouping of multiple domain services actions within a single drop-down is managed by the @javax.annotation.Priority annotation.
| The RestfulObjects viewer does not support this attribute. |