On Thu, Apr 29, 2010 at 18:42, Wilson Leão Neto <[email protected]> wrote: > Hello all! > > I've followed the step-by-step available on: > http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents
As you can see on this page, this tutorial is deprecated. "The tutorial below is slightly outdated since some changes have been brought to the Component Module since it was written. See the Reference document on XWiki Components for fresh information. This tutorial needs to be rewritten and duplicate with the Reference document removed." You should at http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule instead. > > <% > def greeter = com.xpn.xwiki.web.Utils.getComponent(org.xwiki.component. > HelloWorld.class); > println greeter.sayHello(); > %> > > And all I get when trying to use it with the Groovy code above is: > > Error: > java.lang.RuntimeException: Failed to load component xwiki.component.Hello > World?<http://10.11.1.221:9086/xwiki/bin/edit/org.xwiki.component/HelloWorld?parent=Main.teste9> > for > hint > default<http://10.11.1.221:9086/xwiki/bin/edit/Main/default?parent=Main.teste9> > ? <http://10.11.1.221:9086/xwiki/bin/edit/Main/default?parent=Main.teste9> > > Does anyone have any clue on what I'm doing wrong? > > Thank you! > > Wilson > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users > -- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
