> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Vincent Massol
> Sent: Tuesday, December 01, 2009 2:55 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] Passing arguments to Groovy object
> constructor
>
>
> On Dec 1, 2009, at 8:44 PM, Rieken, Joshua wrote:
>
> > Hello,
> >
> > Is it possible to pass arguments to a Groovy object
> instantiated using
> > xwiki.parseGroovyFromPage("Blah.Blah"), or is there some
> other way to
> > do it?
>
> BTW note that in XWiki Syntax 2.0 parseGroovyFromPage isn't needed.
> You can use the {{groovy}} and {{include}} macros instead.
>
> -Vincent
Thank you! This solved my issue. I was able to wrap the class in its own page
with {{groovy}} {{/groovy}}, {{include}} that document, and create a new object
with constructor arguments.
-Joshua
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users