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(a)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(a)objectweb.org
Subject: Re: [xwiki-dev] xwiki Link gets delinked after clicking
On 7/6/06, mrudula.madiraju(a)wipro.com <mrudula.madiraju(a)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>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
Just checked out the updates for today. In GroovyTemplateEngine.java lines
317 and 331, the the objects are assigned true / false instead of using new
Boolean() which java 1.4 is complaining.
Duke
Hello,
i use the current svn trunk. When trying to compile XWiki using Ant and JDK
1.5_06 two errors occur in class GroovyTemplateEngine.
Line 317 and 331 are problematic
objects[1] = true; //should be changed to
objects[1] = Boolean.TRUE;
and
objects[1] = false; //should be changed to
objects[1] = Boolean.FALSE;
Bye,
Raiko
Hi,
There is a new test release 0.9.1252 which is a major evolution versus
0.9.840 and contains mainly fixes since 0.9.1252
Any user is welcome to test it and report any problems.
Ludovic
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic
Hi,
Does any one know how to fine author of a wiki page. Please help.Regards,
S.Salman Qaiser
_________________________________________________________________
Try Live.com - your fast, personalized homepage with all the things you care about in one place.
http://www.live.com/getstarted
Is this the correct SVN url? I havent seen any updates for quite some time
:(
URL: svn://svn.forge.objectweb.org/svnroot/xwiki/xwiki/trunk
Repository Root: svn://svn.forge.objectweb.org/svnroot/xwiki
Repository UUID: f329d543-caf0-0310-9063-dda96c69346f
Revision: 1085
Node Kind: directory
Schedule: normal
Last Changed Author: namphunghai
Last Changed Rev: 1085
Last Changed Date: 2006-06-05 07:44:55 -0700 (Mon, 05 Jun 2006)
Properties Last Updated: 2006-06-01 21:56:22 -0700 (Thu, 01 Jun 2006)
Cheers
Duke
Hi,
last week we've installed XWiki running on Tomcat with Postgres. There were some changes necessary with the database layout for Postgres, therefore I wanted to submit the changes we did.
--------- changes-xwiki-postgres.sql
/* This SQL-file consists some changes necessary to use XWiki together
* with PostgreSQL. The changes are tested. They have to be applied
* during installation, otherwise XWiki won't work.
*/
/* Copied from http://www.xwiki.org/xwiki/bin/view/Dev/PostgresDatabase
* Thanks Artem.
*/
ALTER TABLE xwikiclassesprop ALTER xwp_unmodifiable TYPE boolean USING xwp_unmodifiable=1;
ALTER TABLE xwikidblistclasses ALTER XWL_MULTISELECT TYPE boolean USING XWL_MULTISELECT=1;
ALTER TABLE xwikidblistclasses ALTER XWL_RELATIONAL TYPE boolean USING XWL_RELATIONAL=1;
ALTER TABLE xwikislistclasses ALTER XWL_MULTISELECT TYPE boolean USING XWL_MULTISELECT=1;
ALTER TABLE xwikislistclasses ALTER XWL_RELATIONAL TYPE boolean USING XWL_RELATIONAL=1;
/* Changed after errors during file upload were discovered:
* xwikiattachment_archive.xwa_archive: type text --> type bytea
* xwikiattachment_content.xwa_content: type text --> type bytea
*
* Altering the data type at once is not possible, Postgres
* can't cast from text to bytea. This error is even reported
* if the table is empty.
*/
ALTER TABLE xwikiattachment_archive DROP COLUMN xwa_archive;
ALTER TABLE xwikiattachment_archive ADD COLUMN xwa_archive bytea;
ALTER TABLE xwikiattachment_content DROP COLUMN xwa_content;
ALTER TABLE xwikiattachment_content ADD COLUMN xwa_content bytea;
---------
HTH
Best regards,
Fabian.
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>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?
Any pointers, guidance will be appreciated.
Thanks in Advance and Regards,
Mrudula
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