walido wrote:
HI,
my xwiki did not evaluate any of the snippets or groovy/velocity class that i wrote
until now not even a helloworld script he just ignore them and display the code as a
simple text
the wiki syntax is 1.0
what is going wrong there??
help me with this one please thanks
Have you saved your groovy pages with a user
that has the programming
access level ? That could be your issue.
To check that you have programming access level, just write the
following in a page :
<%
print 2 + 2
%>
If it says "4", you have the proper access level to save page with the
programming right (and thus make them execute groovy when displayed). If
insteat it displays the code, you don't have that right, so make sure to
allow your user this right (or bargain with your wiki administrator ;))
Side note: for virtual wikis (wiki farm), only users of the main
(generraly "xwiki") wiki are allowed to have the programming access level.
Regards,
Jerome