Changes for page Creating XWiki Components

Last modified by Simon Urli on 2023/10/10

From version 17.2
edited by Anca Luca
on 2009/02/17
Change comment: Updated tutorial to the 1.8 platform version: rewrote maven archetypes, fixed links, references to platform version.
To version 17.3
edited by Anca Luca
on 2009/02/17
Change comment: Fixed link to VelocityContextInitializer, pointed to the trunk version instead of a tag one.

Summary

Details

Page properties
Content
... ... @@ -255,7 +255,7 @@
255 255  
256 256  XWiki dev team is currently working on the design of a VelocityBridge interface that will handle components access from velocity. Until this specification is ready and its first implementation done, we can do it as follows:
257 257  
258 -We write another component in our package, that implements the <a href="http://svn.xwiki.org/svnroot/xwiki/platform/core/tags/xwiki-core-1.8/xwiki-velocity/src/main/java/org/xwiki/velocity/VelocityContextInitializer.java"><tt>VelocityContextInitializer</tt></a>, which is responsible for the initialization of the velocity context in XWiki through its method <tt>initialize(VelocityContext context)</tt>, called automatically when a new velocity context is created. As you probably guessed, we will use this function to add our <tt>HelloWorld</tt> component to the velocity context.
258 +We write another component in our package, that implements the <a href="http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-velocity/src/main/java/org/xwiki/velocity/VelocityContextInitializer.java"><tt>VelocityContextInitializer</tt></a>, which is responsible for the initialization of the velocity context in XWiki through its method <tt>initialize(VelocityContext context)</tt>, called automatically when a new velocity context is created. As you probably guessed, we will use this function to add our <tt>HelloWorld</tt> component to the velocity context.
259 259  
260 260  {code}
261 261  public class HelloWorldVelocityContextInitializer implements VelocityContextInitializer

Get Connected