Are you doing something like this?
#set($doc = $xwiki.getDocument("TPJ2O", "TestPage").getDocument())
#set($doc = $doc.renameDocument("blabla", $context.getContext()))
The doc seems to be renamed ($doc.getName() shows a new name) but the
page is still there and with the same name. Isn't it supposed to be
moved (and renamed in the process)?
        -----Original Message-----
        From: THOMAS, BRIAN M (SBCSI) [mailto:bt0008@att.com]
        Sent: November 27, 2006 12:56 PM
        To: xwiki-users(a)objectweb.org
        Subject: RE: Antwort: [xwiki-users] How can i change/move a
xwiki page
        Also, note that XWiki.renameDocument() is a method that requires
that the last author of the calling page have the "programming" right on
it.  A perhaps less-than-obvious implication of this is that regardless
of whether the current user has it, it will not work in preview mode if
the document was not last saved by a user with that right, including, of
course, the case where it was never saved by anyone, so the document
must exist.
        Haven't thought much about whether this should be considered a
bug, but it doesn't seem a straightforward matter.  Probably ought to be
clearly documented at the least.
        brain[sic]
                -----Original Message-----
                From: THOMAS, BRIAN M (SBCSI)
                Sent: Monday, November 27, 2006 11:25 AM
                To: xwiki-users(a)objectweb.org
                Subject: RE: Antwort: [xwiki-users] How can i
change/move a xwiki page
                com.xpn.xwiki.doc.XWikiDocument.renameDocument() is a
method that will do what you need done, without worrying about whether
you get all your database ducks in a row.  There are bugs that may
prevent it from working, but I only encountered them in dealing with
user profile documents.
                brain[sic]
                        -----Original Message-----
                        From: Kristian Marinkovic
[mailto:kristian.marinkovic@porsche.co.at]
                        Sent: Saturday, November 25, 2006 1:19 PM
                        To: xwiki-users(a)objectweb.org
                        Subject: Antwort: [xwiki-users] How can i
change/move a xwiki page
                        <http://www.porsche-informatik.at/> Hello folks,
                        i could solve the problem myself. the key is the
fact that the XWD_ID of the
                        XWIKIDOC table is the hashvalue of the documents
fullname (space/web + "." + name).
                        Changing the document name is not enough,
additional a new XWD_ID key with the
                        new name has to be generated.
                        greetings
                        kris
                        -----kristian.marinkovic(a)porsche.co.at schrieb:
-----
                                An: xwiki-users(a)objectweb.org
                                Von: kristian.marinkovic(a)porsche.co.at
                                Datum: 24.11.2006 03:32PM
                                Thema: [xwiki-users] How can i
change/move a xwiki page
                                Hello,
                                my xwiki system has several documents
with incorrect names
                                eg.:   A.B.C.index    should be
A.B.D.index
                                which datafields (and what tables) do i
have to change in order to
                                achieve a page move? i tried to modify
the xwd_fullname, xwd_web,
                                xwd_parent and xwd_name columns in the
XWIKIDOC table but it doesnt
                                work. I also checked the data within
XWIKILINKS.
                                I was also unable to determine where
xwiki get its document ids (XWD_ID)
                                at startup. Maybe someone could point me
to the correct sources :)
                                can somebody help me?
                                g,
                                kris
                                --
                                You receive this message as a subscriber
of the xwiki-users(a)objectweb.org mailing list.
                                To unsubscribe:
mailto:xwiki-users-unsubscribe@objectweb.org
                                For general help:
mailto:sympa@objectweb.org?subject=help
                                ObjectWeb mailing lists service home
page: 
http://www.objectweb.org/wws