Hi Andy,
On Thu, Sep 17, 2009 at 4:56 AM, Andreas Schaefer <schaefera(a)me.com> wrote:
I am investigation the possibility to write Panels in
Groovy. Unfortunately
I am not able to figure out:
- if I XWiki would render Groovy script code by itself and if how ?
- If not can I render a Groovy script form another Groovy script ?
BTW I was stuck for a while when trying to create my own BlogPostTemplate
because XWiki would not allow me to run it as Groovy script even if I gave
myself programming rights. But when I wrote the BlogPostSheet as Groovy
class and loaded it inside the Velocity script of the BlogPostTemplate it
worked perfectly. Now I am wondering why I could not execute the Groovy
script if I can circumvent this restriction so easily.
I think that's because panels are loaded in the context of the current
document. If the current document doesn't have programming rights, the
groovy code won't work. I'm not sure how using {{include}} affects this
though.
Guillaume
Cheers - Andy
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Guillaume Lerouge
Product Manager - XWiki
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/