<
From version < 41.1 >
edited by Vincent Massol
on 2012/05/19
To version < 42.1 >
edited by Thomas Mortagne
on 2012/05/25
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.ThomasMortagne
Content
... ... @@ -284,6 +284,22 @@
284 284  Versions prior to [[XWiki Enterprise 2.4>>xwiki:ReleaseNotes.ReleaseNotesXWikiEnterprise24]] have a bug which prevents you from having access to the default objects (doc, xcontext, request, etc.) a [[workaround is available in the Extensions wiki>>extensions:Extension.Access To Bindings In Python]]
285 285  {{/warning}}
286 286  
287 += Share variable between languages =
288 +
289 +Most JSR223 based scripting languages reinject the created variable in the current ScriptContext which mean you can define a variable in a Groovy script and reuse it in a following Python script for example.
290 +
291 +For Velocity which is not based on JSR223 a bridge has been done to allow it to access the current ScriptContext variable so you can do things like:
292 +
293 +{{code}}
294 +{{groovy}}
295 +var = "toto"
296 +{{/groovy}}
297 +
298 +{{velocity}}
299 +$var
300 +{{/velocity}}
301 +{{/code}}
302 +
287 287  = Scripting In XWiki Syntax 1.0 =
288 288  
289 289  XWiki Syntax 1.0 is rendered by an old rendering engine which still supported but for which no further development is planned (it will eventually be removed). Syntax 1.0 has some idiosyncrasies which were solved by syntax 2.0.

Get Connected