Thanks, Vincent!
On Mon, Feb 20, 2017 at 1:28 PM Vincent Massol <vincent(a)massol.net> wrote:
Hi Ricardo,
On 15 Feb 2017, at 09:02, [IDIS Technical
Secretariat] Ricardo Rodríguez
<ricardo.rodriguez(a)idisantiago.es> wrote:
Hi! After many years surviving with Velocity scripts, it is time to enjoy
Groovy's magic! :-)
Great! :)
Both XWiki sites and the web, in general, are
crowded with sites/pages
with
plenty of Groovy tutorials and manuals, but it
would be great to have
some
simple examples to helping understand the
similarities and differences
between Velocity and Groovy.
Please, is there any XWiki resource explaining, for instance, how to
achieve the same results shown in these sections by using Groovy?
There’s this doc that you may or may not have seen already:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting
Please check in this doc the limitations of using groovy (programming
rights).
It’s easy to convert a velocity script in groovy in general since the
bindings are the same and all the API calls are actually calls on java
objects and thus are the same from all scripting languages.
Let us know if you have specific questions
... that is making me nuts! This one...
SomeSpace.SomeClass[0] : field1 = "$rawValue"
I've been not able to make it work, whereas other syntaxes do. Here some
"life" Groovy examples....
Thanks
-Vincent
http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsin…
http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsfr…
> Thanks for your help!
> Ricardo
> --
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
>
http://www.idisantiago.es
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)