To answer your "how to create a new document" query, I present a snippet of Groovy:

          newDoc = xwiki.getDocument(spaceName, newTitle)
          newDoc.doc.setContent(newContent)
          newDoc.doc.setAuthor(authorName)
          newDoc.doc.setCreationDate(createdTime)
          newDoc.doc.setDate(modifiedTime)
          newDoc.saveDocument()

- - -
Hans Gerwitz
http://phobia.com/


On Nov 7, 2005, at 1:42 AM, Youcef BEY wrote:

Hi all,

I have followed the tutorial for crating a new classe and insert it in a new
document, but it not work! This is the link that I have followed to do that
:
http://www.xwiki.org/xwiki/bin/view/DevGuide/FAQs+Tutorial

Other question:

How to create by groovy or velocity a new document and put text in it's
content.
(like I give the name of document in edit area and after that I click a
button, this will be create for me a new document with the given name of
document)

All my thanks in advance
----------------------------------------------------------------------------
-------------
Youcef




--
You receive this message as a subscriber of the xwiki-dev@objectweb.org mailing list.
To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



- - -
Hans Gerwitz