Changes for page Creating XWiki Components

Last modified by Simon Urli on 2023/10/10

<
From version < 71.2 >
edited by Adel Atallah
on 2018/05/28
To version < 71.3 >
edited by Vincent Massol
on 2019/02/08
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.atallahade
1 +XWiki.VincentMassol
Content
... ... @@ -280,15 +280,19 @@
280 280  
281 281  For example to access it in Velocity you'd write:
282 282  
283 -{{code language="none"}}{{velocity}}
283 +{{code language="none"}}
284 +{{velocity}}
284 284  $services.hello.greet()
285 -{{/velocity}}{{/code}}.
286 +{{/velocity}}
287 +{{/code}}
286 286  
287 287  From Groovy:
288 288  
289 -{{code language="none"}}{{groovy}}
291 +{{code language="none"}}
292 +{{groovy}}
290 290  print services.hello.greet()
291 -{{/groovy}}{{/code}}.
294 +{{/groovy}}
295 +{{/code}}
292 292  
293 293  Now for our script service to work we need to register it as a component and thus add it to the ##META-INF/components.txt## file:
294 294  

Get Connected