Actions

cancel
Showing results for 
Search instead for 
Did you mean: 

Actions

resplin
Intermediate
0 0 2,367

Obsolete Pages{{Obsolete}}

The official documentation is at: http://docs.alfresco.com



JSF Component
Back to Component Library

Available from Alfresco 1.3 onwards!


Actions


General Description


The actions component renders an action group definition as a set of UIActionLink components. See the Externalised Client Actions for more information on action and action group config definitions.


Tag details


<string>'
  rendered='<boolean>'
  value='<string>' mandatory
  context='<value-binding>' mandatory
  style='<string>'
  styleClass='<string>'
  verticalSpacing='<integer>'
  showLink='<boolean>'
/>

Custom tag attributes


value - The value of the component is the ID of an Action Group config definition. See the Externalised Client Actions for more information on action and action group config definitions.

context - Context must be value-bound to a Node instance that provides the action context to each action in the action group definition.

verticalSpacing - If set to a +ve integer value, it forces the action group to render vertically rather than horizontally. The spacing value defines the spacing between each vertically rendered action.

showLink - Whether each action should be shown as an icon plus a link or if set false then just an icon.


Example


Example where the action group called my_document_actions is referenced and the showLink component attribute is set to false to display a list of icons with no textual links:

<r:actions value='my_document_actions' context='#{BrowseBean.document}' showLink='false' />

An example that uses vertical rendering to display the actions as a vertical list of links and icons:

<r:actions value='my_document_actions' context='#{BrowseBean.document}' verticalSpacing='3' />

Screenshots


An action group rendered with the showLink attribute set to false:

Actions_1.png

An action group rendered with the verticalSpacing attribute set:

Actions_2.png