Last modified by Manuel Leduc on 2023/10/10 16:48

From version 15.1
edited by slauriere
on 2021/03/18 11:28
Change comment: Migrated property [website] from class [ExtensionCode.ExtensionClass]
To version 15.2
edited by Manuel Leduc
on 2023/10/10 16:48
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.slauriere
1 +xwiki:XWiki.mleduc
ExtensionCode.ExtensionClass[0]
Show installed count
... ... @@ -1,0 +1,1 @@
1 +Yes
Description
... ... @@ -2,9 +2,9 @@
2 2  Please refer instead to the [[Groovy Script Service Tutorial>>extensions:Extension.Script Module.GroovyScriptServiceTutorial]]. This snippet is deprecated since the introduction of [[wiki components>>extensions:Extension.WikiComponent Module]]. Also, bear in mind this snippet has a major downside: it requires the page containing it to be viewed at least once for the component to be correctly registered, hence the need of a scheduler, which is overkill.
3 3  {{/warning}}
4 4  
5 -XWiki components can be written in [[Java>>platform:DevGuide.WritingComponents]], but also using Groovy.
5 +XWiki components can be written in [[Java>>xwiki:Documentation.DevGuide.Tutorials.WritingComponents.WebHome]], but also using Groovy.
6 6  
7 -{{code language=java}}
7 +{{code language="java"}}
8 8  {{groovy}}
9 9  import org.xwiki.component.descriptor.*;
10 10  import org.xwiki.script.service.*;
... ... @@ -36,7 +36,7 @@
36 36  
37 37  The component must be registered once by executing the code above: either manually view the page containing the code or put the code in a scheduled job with very frequent trigger to auto-register after the server restarts
38 38  
39 -==Accessing the component from Velocity==
39 +== Accessing the component from Velocity ==
40 40  
41 41  {{code}}
42 42  {{velocity}}
... ... @@ -44,5 +44,6 @@
44 44  {{/velocity}}
45 45  {{/code}}
46 46  
47 -==Other component implementations==
48 -* [[platform:DevGuide.GroovyNotificationTutorial]]
47 +== Other component implementations ==
48 +
49 +* [[xwiki:Documentation.DevGuide.Tutorials.GroovyNotificationTutorial.WebHome]]
contributors
... ... @@ -1,0 +1,1 @@
1 +Oana Tabaranu

Get Connected