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:

 

  1. I am creating documents directly using the xwiki API (using a java standalone program)
  2. After creation, I am able to see these documents by accessing the appropriate url in the browser.
  3. I have a main page which has links to all these documents. This main page is also created using the java api.
  4. When I click on the link of the main page, it pulls up the appropriate sub page and displays it correctly

 

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&gt;HowToDoXYZ]

 

 

WHAT I WANT:

 

Can someone please enlighten me

  1. Why is it that the main page gets edited when I click on the link?
  2. How can I avoid this?

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


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com