actionItem

Description: An action element to add to an action list element. Can be used for normal actions of formActions.

JavaDoc: Click here

Body content: Empty. All enclosed content will be ignored.

Attributes:

Name Description Data type Required Default value
type The type for the action item String No CUSTOM. See more bellow.
id The id for the HTML element String No Depends of "type"
label The label for the menu item String No Depends of "type"
title The title for the menu item String No Depends of "type", or the same as "label"
cssClass The CSS class to use for the action String No Depends of "type"
stageID The ID of the stage to link to. String No -
stageParameters The stage parameters in a a key value comma separated list String No -
url The URL to link to. String No -
javascript The javascript code to run. String No -
submitType Submit type for the current form (SUBMIT/RESET). String No -
newWindow If the link should open in a new window or not. Boolean No True for external URLs, False for stages and relative URLs
showWithoutAccess Show even if the user has no access to the linked stage. Boolean No False
disabled Render the link as disabled. Boolean No False
popup A configuration string for popupMode activation String No -
confirmation Displays a default message to confirm the user operation Boolean No False, unless confirmationMessage is set
confirmationMessage Custom message for the confirmation message String No -

Action types:

  • CUSTOM: Custom action, user defined. No default values.
  • TEXT: Text content, no link, just the text given on the label.
  • SAVE: Save action. Defaults to saving the current page if JS is available. Is omitted otherwise. When specified non default values the previous behavior is overridden.
  • PRINT: Print action. Defaults to printing the current page if JS is available. Is omitted otherwise. When specified non default values the previous behavior is overridden.
  • HELP: Help action, if help context available. Is omitted otherwise. When specified non default values the previous behavior is overridden.
  • SEND: Send action, must specify all but the conventioned cssClass.
  • CLOSE: Close action, defaults to closing the current window if JS is available. Is omitted otherwise.
  • BACK: Back action, reverts to the previous stage in breadcrumbs, if any. Is omitted otherwise.
  • TOP: Top action, go to top of page if JS is available. Is omitted otherwise.
  • INFO: Info action. Just sets the icon, no more defaults
  • ADD: Add action. Just sets the icon, no more defaults
  • DELETE: Delete action. Just sets the icon, no more defaults
  • EDIT: Edit action. Just sets the icon, no more defaults
  • YES: Yes action. Just sets the icon, no more defaults
  • NO: No action. Just sets the icon, no more defaults
  • SUBMIT: Submit action. Defaults to a form input. If a stage/URL is given it falls back to just setting the icon
  • CLEAR: Clear action. Defaults to a form input. If a stage/URL is given it falls back to just setting the icon
  • OK: OK action. Just sets the icon, no more defaults
  • CANCEL: Clear action. Just sets the icon, no more defaults
  • PREVIOUS: Previous (page/etc) action. Just sets the icon, no more defaults
  • NEXT: Next (page/etc) action. Just sets the icon, no more defaults

Examples:

<dif:document>
        <dif:actions>
        <dif:actionItem type="send" />
        <dif:actionItem type="save" />
        <dif:actionItem type="print" />
        <dif:actionItem type="help" />
        <dif:actionItem stageID="mockupteststage" />
        <dif:actionItem />
        <dif:actionItem label="Test Grid" url="test.html" />
        <dif:actionItem label="Sample Page" title="Some sample page" url="page.html" newWindow="true" />
        <dif:actionItem label="Digitalis" url="http://www.digitalis.pt" />
        <dif:actionItem stageID="mockupprivatestage" label="Private test Stage (always visible)" showWithoutAccess="true" />
        <dif:actionItem stageID="mockupprivatestage" />
    </dif:actions>
    ...
</dif:document>

See also:

Back to tag reference