Hi All,
I'm starting to have a look at groovy scripting in xwiki and have a couple
of basic questions:
In the example below (from
xwiki.org)
<%
def foo(list, value)
{
println "Calling function foo() with param ${value} <br>";
list << value;
}
x = [];
foo(x, 1);
foo(x, 2);
foo(x, 3);
foo(x, 4);
println "Creating list ${x}";
%>
1) does the groovy variable ${value} get translated before the velocity
${value} (if defined) or vice versa?
2) I tried the example and get the following result:
Calling function foo() with param 1
Calling function foo() with param 2
Calling function foo() with param 3
Calling function foo() with param 4
Creating list 1, 2, 3, 4?
where the "1, 2, 3, 4?" is a link to "1,+2,+3,+4". I assume the output
from
groovy is then processed by the xwiki syntax?
Thanks
Duke