Hi,
I have problem to get this application works properly, In this
article<http://www.xwiki.org/xwiki/bin/view/FAQ/How+to+implement+%22Appr…ts>,
i'm supposed to do this to test it :
1. Create a page, say Main.Test with the content "Original Content"
2. Edit the page again to change the content to "New Content"
3. Add an XObject of type Revision.RevisionClass and set the
revisionfield to
1.1 (this is the version we want to display)
4. Save
This works
But when we change the order :
1. Add an XObject of type Revision.RevisionClass and set the
revisionfield to
1.1 (this is the version we want to display)
2. Create a page, say Main.Test with the content "Original Content"
3. Edit the page again to change the content to "New Content"
4. Save
it doesn't work anymore, you save the Revision object with the right
revision but it won't display it.
But this works for all revisions before adding the object.
Once you added the object, no matter how much changes you made, you won't
be able to display last revisions(created after adding the object)
BTW, when i give a wrong revision, the page display just
"$revDoc.getRenderedContent()"
One strange usecase :
1) i create a new page, make modifications and save 3 times
2) i add the object and give 1.1 for revision and save
3) when i edit the file, in the editor, i can find the last version, i
modify something and save
==> it's like, it'll save the revision 1.1 (setted to the added object)
When i make "compare selected version" between the last and the first, it
gives me the last change i made, but when i click on the last revision i
can't find the last change i made.
Any explanation please ?
Thanks in advance :)