Names

The named() element explicitly specifies the action’s name, overriding the name that would normally be inferred from the Java source code.

Only use this attribute when the desired name cannot be used in Java source code. Examples of that include a name that would be a reserved Java keyword (eg "package"), or a name that has punctuation, eg apostrophes.

For example:

public class Customer {
    @ActionLayout(named="Get credit rating")        (1)
    public CreditRating obtainCreditRating() {
        // ...
    }
}
1 "get" normally indicates a property rather than an action.

Alternatives

The framework also provides a separate, powerful mechanism for internationalization.