com.atlassian.jira.web.action
Annotation Type ActionViewDataMappings


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface ActionViewDataMappings

The annotation used to indicate that a method is to be used to provide data to a JiraWebActionSupport action.

This allows you to specify multiple views that the method gives data to.

    @ActionViewDataMappings({"success","fail"})
 

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

Required Element Summary
 String[] value
           
 
Optional Element Summary
 String key
          Use this optional parameter to change the name of the key used to store the method value.
 

Element Detail

value

public abstract String[] value
Returns:
the array of view names that this method value will apply to.

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-2013 Atlassian. All Rights Reserved.