Annotation Interface ActionViewDataMappings


@Retention(RUNTIME) @Target(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

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Use this optional parameter to change the name of the key used to store the method value.
  • Element Details

    • value

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

      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:
      "*"