Hi,
what I want to do is to retrieve a list of WikiLinks from an external
SOAP webservice which
implements our recommendation system. I was hoping I could do that
directly as embedded groovy
in the panel. So the path would be to implement this in a seperate page,
return the recommendations
as class using parseGroovyFromPage and access this from velocity?
I would need to pass the name of the XWiki page on which the panel is
going to be displayed as well,
but the $context in the groovy-script would then be the page the
groovy-script is embedded in, right?
But thanks, I will continue this way.
-Hans-Peter
Esbach, Brandon schrieb:
Hi,
Groovy and Velocity doesn't really mix anymore with newer versions of
xwiki (actually, for some time now) . If you just need to run some
groovy or check a status, you can use
#set($oUserObject=$xwiki.parseGroovyFromPage("Myspace.MyDoc")),
replacing "Myspace.MyDoc" with the full name of a document where your
script is embedded.
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf
Of Hans-Peter Zorn
Sent: 07 February 2008 12:59
To: XWiki Users
Subject: [xwiki-users] Groovy Script in Panel
Hi,
I have the following problem with groovy scripts in a panel:
Even an empty groovy-script, but also simple ones like
#panelheader('test')
<%
print "hallo"
%>
#panelfooter()
are only shown as "groovy.lang.MissingPropertyException: No such
property: panel for class: Script1"
after a while (for some time, it works)
Has anybody seen that before and can maybe give advice?
Thanks,
Hans-Peter
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users