Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7872

Can't use the velocity macro inside Dashboard gadgets

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1-milestone-2
    • Fix Version/s: 4.1-rc-1, 4.0.1
    • Component/s: Dashboard
    • Labels:
      None
    • keywords:
      dashboard macro nested velocity gadget
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      After the introduction of the user dashboard feature (XWIKI-6820), the Dashboard.WebHome page started using the activity macro inside a velocity macro. This had the effect that all gadgets trying to use the velocity macro for themselves got a "Nested script exception" since a velocity macro inside another velocity macro is not allowed.

      To fix this, the Dashboard java macro needs to implement NestedScriptMacroEnabled to allow inner velocity macros (inside gadgets).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                enygma Eduard Moraru
                Reporter:
                enygma Eduard Moraru
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: