I found the problem for the problem –
I had originally posted. Hence sharing the same with the group, just in case it
is useful.
When I created the XwikiDocument using
java code I had unnecessarily set the Language instead of the default language.
This messed up with ids and hence resulted
in delinking. The code below works fine.
XWikiDocument superMainDoc = new
XWikiDocument(“mailArchiver”, "index");
superMainDoc.setContent("asdfsadf");
superMainDoc.setDefaultLanguage("en");
superMainDoc.setAuthor("Admin");
xwiki.saveDocument(superMainDoc, context);
From: Mrudula Madiraju
(WT01 - Technology,Media,Transportation&Services)
Sent: Thursday, July 06, 2006 7:49
PM
To: xwiki-dev@objectweb.org
Subject: RE: [xwiki-dev] xwiki
Link gets delinked after clicking
Hi Jeremi,
It is the latest - 9.840. And this happens only for some kinds of pages
- I am not able to find out what kind of pages, though.
And the other funny thing is, if I search for the document name or part
of it using hte regulare XWiki Search button, the result shows up with correct
url but again delinked (This happens even if I have not clicked the link
before)
Rgds,
Mrudula
From: jeremi
joslin [mailto:jeremi23@gmail.com]
Sent: Thu 7/6/2006 5:13 PM
To: xwiki-dev@objectweb.org
Subject: Re: [xwiki-dev] xwiki
Link gets delinked after clicking
On 7/6/06, mrudula.madiraju@wipro.com
<mrudula.madiraju@wipro.com >
wrote:
BACKGROUND:
PROBLEM:
However,
when I go back to the main page, the link which was working gets delinked. It
now displays with the "?" indicating that the user has to edit it.
WHAT I FOUND:
When
I compared the "main" document content before and after clicking the
link, I found the following difference:
Before
click: [How To Do XYZ>HowToDoXYZ]
After
Click: [How To Do XYZ>HowToDoXYZ]
WHAT I WANT:
Can
someone please enlighten me
The source page is not modified after you click on the link, so i don't
know why this append.
What is your version of XWiki?
Jérémi
--
jeremi