@ActionOrder is a means of specifying the order in which actions should be displayed within
a menu. @ActionOrder is specified at the class level.
The syntax is: @ActionOrder("<comma separated list of action names>")
(the
action names are not case sensitive).
For example:
@ActionOrder("PlaceOrder, CheckCredit")
public class Customer {
public Order placeNewOrder() {}
public CreditRating checkCredit() {}
...
}
Actions can be grouped together by surrounding the group with brackets, and prefixing the
group with name and colon. This information may be used by the viewing mechanism to render
actions into sub-menus. For example:
@ActionOrder("(Account Management: PlaceOrder, CheckCredit) (Personal Details:
ChangeOfAddress, AddEmail) ")
public class Customer {
public Order placeNewOrder() {}
public CreditRating checkCredit() {}
public void changeOfAddress() {}
public void addEmail(String emailAddress) {}
...
}