Hello All, i use a XWiki.WikiMacroClass with a big Velocity-Script in the "Macro Code"-Section. Now i want to transfer it to a Java-Macro as described in http://rendering.xwiki.org/xwiki/bin/view/Main/ExtendingMacro. I am not sure where i have to place the code inside the Java-Macro. I tried @Inject private MacroContentParser contentParser; and in the method public List<Block> execute(...) { Strong code = "{{velocity}}\n" + "$doc\n"+"{{/velocity}}"; List<Block> result = this.contentParser.parse(code, context, true, context.isInline()).getChildren(); return result; } But this give no code-result back in The Page when i use the macro. Is that the right way? Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/Programmed-Macro-with-Velocity-Inside-tp75... Sent from the XWiki- Dev mailing list archive at Nabble.com.