It depends of the kind of macro.

In wiki macro the response is "response" binding (so $response in
Velocity for example). Here is an example:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Generate+downloaded+content

In a Java macro you will have to @Inject org.xwiki.container.Container
component (xwiki-platform-container-api module) to access the response
or go access the response from the XWikiContext if you already use it.

On Sun, Dec 8, 2013 at 10:19 PM, Matthias Wegner <[email protected]> wrote:
> Hi Devs,
>
> i want to render with a macro a content into different file-types which can
> be downloaded. I think i must use response/request to "deliver", but not
> sure how i can do that. Is there an example where i can learn from?
>
> regards,
> Matthias
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Create-a-Download-Button-which-returns-a-rendered-file-tp7588312.html
> Sent from the XWiki- Dev mailing list archive at Nabble.com.
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs



-- 
Thomas Mortagne
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to