[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
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: [email protected] [mailto:[email protected]] 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Feb 7, 2008, at 2:04 PM, Esbach, Brandon wrote:
Hi,
Groovy and Velocity doesn't really mix anymore with newer versions of xwiki (actually, for some time now) .
They do I think... You just need to know that velocity executes first that's all. -Vincent
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: [email protected] [mailto:[email protected]] 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
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: [email protected] [mailto:[email protected]] 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Esbach, Brandon -
Hans-Peter Zorn -
Vincent Massol