com.atlassian.jira.web.action
Annotation Type ActionViewData
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface ActionViewData
The annotation used to indicate that a method is to be used to provide data to an JiraWebActionSupport
action.
If you specify no view value then it defaults to "*" which means this applies to all the action views
By default the name of the method is used as the data key. If the method is a JavaBean getter then the
de-capitalised name will be used otherwise the method name is taken as is. You can use the key="xxx" attribute to
override the key name used
getAddress() --> "address"
myAddress() --> "myAddress
- Since:
- v6.0
Optional Element Summary |
String |
key
Use this optional parameter to change the name of the key used to store the method value. |
String |
value
Names the view that this data item is associated with. |
value
public abstract String value
- Names the view that this data item is associated with.
- Returns:
- the view to apply to or it defaults to "*" which means this applies to all the action views
- Default:
- "*"
key
public abstract String key
- Use this optional parameter to change the name of the key used to store the method value. This is useful if you
cannot shape the method name how you would like. The general idea is to use bean names or direct method naming.
- Returns:
- the name to use or "*" which means use the method name as is
- Default:
- "*"
Copyright © 2002-2014 Atlassian. All Rights Reserved.