Thanks Caleb,

It worked just fine.

Abel

On Tue, May 18, 2010 at 3:40 PM, Caleb James DeLisle <
[email protected]> wrote:

> nxdoc = xwiki.getDocument("some.nonexistentDocument");
> gives you a brand new document to work with. It won't be put in the
> database until you call
> nxdoc.save() or nxdoc.saveAsAuthor()
> You can put content in the document with nxdoc.setContent("some content");
>
> See: http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting
>
> Caleb
>
> Abel Solórzano Astorga wrote:
> > Hi,
> >
> > I want to create an xwiki page from a groovy script and add some content
> to
> > it. Could somebody tell me how can I accomplish that?
> >
> > Thanks,
> >
> > Abel
> > _______________________________________________
> > users mailing list
> > [email protected]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to