Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-9157

Allow dynamic filtering of actions available within an iteration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.5
    • Fix Version/s: Postponed
    • Component/s: Seam / JSF UI

      Description

      For now, actions can be filtered with conditions that use EL expressions.
      For example:

      <condition>#{lockActions.getCanLockDoc(document)}</condition>
      

      These EL expressions are evaluated in a given ActionContext, that exposes variables such as currentDocument or currentPrincipal.
      This is fine for actions that apply to the current document for example, such as Lock document, for which the condition only needs these "global" variables to be evaluated.
      But we don't have any easy way to declare an action available for some or all items of a list, guarded by a condition that would be evaluated against each item of the list.
      Typically in the case of Archived versions (see NXP-9118), we can now contribute actions available for each version, but cannot guard such actions by a condition depending on the version item.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified