Each action data object in a set is a data object of type com.vmware.actionsfw.ActionSpec. You must create an
ActionSpec data object for every action to add to the action set.
You create each ActionSpec data object using a
<com.vmware.actionsfw.ActionSpec> XML element. In this element, you set the properties for the action.
ActionSpec Object Properties lists the properties that you set for each
ActionSpec object.
HTML-based extensions do not use the <command> property. Instead they contain a
<delegate> object.
HTML-based extensions use delegated actions instead of the command classes used by Flex-based extensions. The <delegate> object requires a
<className> property and an
<object> element that contains only an embedded
<root> object.
Example: Example Action Set for an HTML-Based Extension shows the structure of the
<delegate> object for an HTML-based extension.
The <className> property must specify the
HtmlActionDelegate class for HTML-based extensions:
The <root> object specifies the UI dialog box used to initiate the HTML-based action.
Root Object Properties for HTML Action Extension lists the properties that you set in the
<root> object.
You define the client part of your action extension using ActionSpec objects in your
plugin.xml file. The properties you use to define an
ActionSpec object depend on the type of extension.
There are two types of HTML-based action extensions. One type, known as a UI action, displays a modal dialog box for user input or confirmation before submitting a service request. The other type, known as a
headless action, initiates a request to a service without additional user input. An extension definition for a UI action specifies the size and title of the dialog box, while a headless action definition omits the dialog box properties.
Example: Example Action Set for a Flex-Based Extension shows an example extension definition for a Flex-based action set extension. In the example, the extension adds a set of two actions to the vSphere Web Client Actions Framework. The actions are associated with a custom object type called a Chassis.
Example: Example Action Set for an HTML-Based Extension shows an example extension definition for an HTML-based UI action extension. The extension must use a
<delegate> object instead of the
<command> object used by a Flex-based extension. The action in this definition is associated with a custom object type called a Chassis.
By default, the targets parameter takes only one objectId. To specify more than one
objectId, set the flag
acceptsMultipleTargets to
true.
Example: Example Action Set for a Headless HTML-Based Extension shows an example extension definition for an HTML-based headless action extension. The extension must use a
<delegate> object instead of the
<command> object used by a Flex-based extension. The action in this definition is associated with a custom object type called a Chassis.
By default, the targets parameter takes only one objectId. To specify more than one
objectId, set the flag
acceptsMultipleTargets to
true.