Re: [xwiki-users] Include a groovy script into another groovy script

2009-03-30 Thread Zik23
Hi, of course, when I used parseGroovyFromPage, I didn't have the % % around the code. But your solution unfortunately doesn't work for me, because the second page still doesn't know class A, so class B cannot extend it. It only returns an instance of the class A. I need the groovy code of

Re: [xwiki-users] Include a groovy script into another groovy script

2009-03-29 Thread Ludovic Dubost
Hi, You can use: def object = xwiki.parseGroovyFromPage(Include.Page1) Where in Include.Page1 you have a groovy class. The you can call methods.. It didn't work for you because in page one it's just the groovy class without the % % around it Ludovic Zik23 a écrit : Hi, I have two classes