In Confluence, in XWork actions, we use Velocity templates.
However, in some circumstances, the macros are not interpreted.
Even the #requireResource() is not interpreted!
I include a file in my XWork action:
#parse("/actions/mvc.vm") #DONT_DISPLAY("Some text")
The file defines a macro named #DONT_DISPLAY, which does nothing, and certainly not displays the parameter. But when we display the page in Confluence, it displays it. The rendering is:
#DONT_DISPLAY("Some text") <-- This is what is really printed into the HTML page.
Does anyone have an idea about why the
#parse() or the
#macro() instructions have no effect?