Hi ,
Now I have studied most of the source code for using "xWiki Workspace" .
Now I want to integrate xwiki workspace features with my application. Can
any give idea how to plan and start my work at coding level. Now I
understand architecture of this application and how it is written.
My Requirement :
I have one 'UserProfile' page. User is already login in that page. The
same user now want to click the 'widget of wiki' at 'UserProfile' and he
should directly enter to workspace page , where he can create and work in
workspace.
Thanks ,
Md Afzal Sharif
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Can someone tell me which actionclass is fired when the applicaiton starts. I want to know this to understand how the 'xwiki-context' is generated so that I can customise it.
ac
Jerome,
You shouldn't name your test with Abstract as classes starting with
Abstract are excluded from tests by default.
Thanks
-Vincent
On Aug 11, 2008, at 12:38 PM, jvelociter (SVN) wrote:
> Author: jvelociter
> Date: 2008-08-11 12:38:43 +0200 (Mon, 11 Aug 2008)
> New Revision: 11747
>
> Added:
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/AbstractDocumentMojoTest.java
> Removed:
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java
> Log:
> Renamed UpdateDocumentMojoTest to AbstractDocumentMojoTest to match
> the tested class
>
>
> Copied: platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/
> test/java/com/xpn/xwiki/tool/doc/AbstractDocumentMojoTest.java (from
> rev 11746, platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/
> test/java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java)
> ===================================================================
> --- platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/
> AbstractDocumentMojoTest.java (rev 0)
> +++ platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/AbstractDocumentMojoTest.java 2008-08-11
> 10:38:43 UTC (rev 11747)
> @@ -0,0 +1,68 @@
> +/*
> + * See the NOTICE file distributed with this work for additional
> + * information regarding copyright ownership.
> + *
> + * This is free software; you can redistribute it and/or modify it
> + * under the terms of the GNU Lesser General Public License as
> + * published by the Free Software Foundation; either version 2.1 of
> + * the License, or (at your option) any later version.
> + *
> + * This software is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with this software; if not, write to the Free
> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
> + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
> + */
> +package com.xpn.xwiki.tool.doc;
> +
> +import java.io.File;
> +import java.io.FileReader;
> +import java.net.URL;
> +
> +import com.xpn.xwiki.doc.XWikiDocument;
> +
> +import junit.framework.TestCase;
> +
> +/**
> + * Tests for {@link AbstractDocumentMojo}.
> + *
> + * @version $Id: $
> + */
> +public class AbstractDocumentMojoTest extends TestCase
> +{
> + /**
> + * Test that a document loaded in memory from XML by the mojo
> then written back to XML does not lose any
> + * information/is not affected by the process
> + */
> + public void testXMLDocumentLoading() throws Exception
> + {
> + AttachMojo mojo = new AttachMojo();
> +
> + URL resURL = this.getClass().getResource("/
> SampleWikiXMLDocument.input");
> + File resourceFile = new File(resURL.getPath());
> + FileReader fr = new FileReader(resourceFile);
> + char[] bytes = new char[(int) resourceFile.length()];
> + fr.read(bytes);
> + String inputContent = new String(bytes);
> +
> + assertTrue(inputContent.contains("<class>"));
> +
> + XWikiDocument doc = mojo.loadFromXML(resourceFile);
> + assertEquals(doc.getName(), "Install");
> +
> + File outputFile = File.createTempFile("output", "xml");
> + mojo.writeToXML(doc, outputFile);
> +
> + fr = new FileReader(outputFile);
> + bytes = new char[(int) outputFile.length()];
> + fr.read(bytes);
> + String outputContent = new String(bytes);
> +
> + // Check that we did not lose the class definition during
> the loading from XML/writing to XML process.
> + assertTrue(outputContent.contains("<class>"));
> + }
> +}
>
> Deleted: platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/
> test/java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java
> ===================================================================
> --- platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java 2008-08-11
> 08:15:58 UTC (rev 11746)
> +++ platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java 2008-08-11
> 10:38:43 UTC (rev 11747)
> @@ -1,68 +0,0 @@
> -/*
> - * See the NOTICE file distributed with this work for additional
> - * information regarding copyright ownership.
> - *
> - * This is free software; you can redistribute it and/or modify it
> - * under the terms of the GNU Lesser General Public License as
> - * published by the Free Software Foundation; either version 2.1 of
> - * the License, or (at your option) any later version.
> - *
> - * This software is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this software; if not, write to the Free
> - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
> - * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
> - */
> -package com.xpn.xwiki.tool.doc;
> -
> -import java.io.File;
> -import java.io.FileReader;
> -import java.net.URL;
> -
> -import com.xpn.xwiki.doc.XWikiDocument;
> -
> -import junit.framework.TestCase;
> -
> -/**
> - * Tests for {@link AbstractDocumentMojo}.
> - *
> - * @version $Id: $
> - */
> -public class UpdateDocumentMojoTest extends TestCase
> -{
> - /**
> - * Test that a document loaded in memory from XML by the mojo
> then written back to XML does not lose any
> - * information/is not affected by the process
> - */
> - public void testXMLDocumentLoading() throws Exception
> - {
> - AttachMojo mojo = new AttachMojo();
> -
> - URL resURL = this.getClass().getResource("/
> SampleWikiXMLDocument.input");
> - File resourceFile = new File(resURL.getPath());
> - FileReader fr = new FileReader(resourceFile);
> - char[] bytes = new char[(int) resourceFile.length()];
> - fr.read(bytes);
> - String inputContent = new String(bytes);
> -
> - assertTrue(inputContent.contains("<class>"));
> -
> - XWikiDocument doc = mojo.loadFromXML(resourceFile);
> - assertEquals(doc.getName(), "Install");
> -
> - File outputFile = File.createTempFile("output", "xml");
> - mojo.writeToXML(doc, outputFile);
> -
> - fr = new FileReader(outputFile);
> - bytes = new char[(int) outputFile.length()];
> - fr.read(bytes);
> - String outputContent = new String(bytes);
> -
> - // Check that we did not lose the class definition during
> the loading from XML/writing to XML process.
> - assertTrue(outputContent.contains("<class>"));
> - }
> -}
>
> _______________________________________________
> notifications mailing list
> notifications(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/notifications
dear all xwiki developer,
I'm writing a new XWiki Calendar, the application is written fully in GWT using the XWiki-GWT service methods,
in the events module, I asking myself some questions about the
events creation feature, there are several ways to do, so the first one is
to create a document by calendar-event, the second one is to create a document that may
contain several events, the last method can also be divided into two
others, one document by an xwiki-user or one document for all users
can someone help me to make the right choice? thanks is advanced
_________________________________________________________________
Contrôlez les personnes autorisées à parler à vos enfants sur MSN / Windows Live Messenger !
http://www.windowslive.fr/controleparental/default.asp
Hi devs,
Currently XWiki Watch is built as a XWiki application, with no server code,
distributable as a xar archive, using only xwiki-web-gwt's XWikiService to
communicate with XWiki.
While this approach has major advantages from the application accessibility
point of view (it can be easily downloaded and installed), the drawback is the
big amount of functionality that needs to be implemented on the client side
(even if with GWT), with main impact on the application performance (javascript
execution in the browser, data transfer, asynchronous calls).
I propose to change the current approach and create XWatch server / service and
distribute XWatch as a zip / war because:
* it improves code performance: less javascript to execute on client side, less
network traffic; lighter for the client overall
* removing the .xar constraint and distributing watch as zip / war would allow
XWatch dependency on plugins / modules versions independent from XE.
* some Watch features already need some kind of administration on the hosting
machine (emailing press reviews needs a running mail delivery system on the server).
As I mentioned already, the only thing we would lose through this change is the
possibility of installing XWatch as a simple xar (I am not currently very aware
of the amount of users downloading and installing watch as a .xar and not being
able to do it otherwise, so if you can give me some info on that...)
Since I feel the gains would be above the losses, I am +1 for the switch, WDYT?
Hi Jerome,
see below
On Aug 6, 2008, at 12:53 PM, jvelociter (SVN) wrote:
> Author: jvelociter
> Date: 2008-08-06 12:53:03 +0200 (Wed, 06 Aug 2008)
> New Revision: 11685
>
> Added:
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/java/
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/java/
> com/
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/java/
> com/xpn/
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/java/
> com/xpn/xwiki/
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/java/
> com/xpn/xwiki/tool/
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/java/
> com/xpn/xwiki/tool/doc/
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/java/
> com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> resources/
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> resources/SampleWikiXMLDocument.input
> Log:
> XTXMLDOC-6 XClasses lost when exporting documents with existing
> objects
> * Added a test that proves we lose classes when writting back the
> doc to XML.
>
>
> Added: platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/
> test/java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java
> ===================================================================
> --- platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/
> UpdateDocumentMojoTest.java (rev 0)
> +++ platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java 2008-08-06
> 10:53:03 UTC (rev 11685)
> @@ -0,0 +1,85 @@
> +/*
> + * See the NOTICE file distributed with this work for additional
> + * information regarding copyright ownership.
> + *
> + * This is free software; you can redistribute it and/or modify it
> + * under the terms of the GNU Lesser General Public License as
> + * published by the Free Software Foundation; either version 2.1 of
> + * the License, or (at your option) any later version.
> + *
> + * This software is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with this software; if not, write to the Free
> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
> + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
> + */
> +package com.xpn.xwiki.tool.doc;
> +
> +import java.io.File;
> +import java.io.FileReader;
> +import java.io.IOException;
> +import java.net.URL;
> +
> +import org.apache.maven.plugin.MojoExecutionException;
> +
> +import com.xpn.xwiki.doc.XWikiDocument;
> +
> +import junit.framework.TestCase;
> +
> +/**
> + * Test for {@link AbstractDocumentMojo}
> + *
> + * @version $Id: $
> + */
> +public class UpdateDocumentMojoTest extends TestCase
> +{
> +
> + /**
> + * Test that a document loaded in memory from XML by the mojo
> then written back to XML does not lose any
> + * information/is not affected by the process
> + */
> + public void testXMLDocumentLoading()
> + {
> + AttachMojo mojo = new AttachMojo();
> + URL resURL = this.getClass().getResource("/
> SampleWikiXMLDocument.input");
> + try {
> + File resourceFile = new File(resURL.getPath());
> + XWikiDocument doc = mojo.loadFromXML(resourceFile);
> + FileReader fr = new FileReader(resourceFile);
> + char[] bytes = new char[(int) resourceFile.length()];
> + fr.read(bytes);
> + String inputContent = new String(bytes);
> +
> + assertTrue(inputContent.contains("<class>"));
> +
> + assertEquals(doc.getName(), "Install");
> +
> + File outputFile = File.createTempFile("output", "xml");
> + mojo.writeToXML(doc, outputFile);
> +
> + fr = new FileReader(outputFile);
> + bytes = new char[(int) outputFile.length()];
> + fr.read(bytes);
> + String outputContent = new String(bytes);
> +
> + // Test that prove class definitions are lost during
> the process of loading/writing back the XML document.
> + // It currently fail, see http://jira.xwiki.org/jira/browse/XTXMLDOC-6
> + assertTrue(outputContent.contains("<class>"));
> +
> + // check there is no diff bewteen input and output
> file, as no transformation
> + // has been applied.
> + assertEquals(inputContent, outputContent);
> +
> + } catch (MojoExecutionException e) {
> + fail();
> + } catch (IOException e) {
> + fail("Could not load wiki xml document resource file.");
> + }
The best practice is to not use a try/catch block and instead have the
test signature throws an Exception. That's unless you're specifically
testing for an exception but that's not the case here.
Thanks
-Vincent
Hi,
I just upgraded my system and before that Xwiki was running fine. Now, it is
giving me error
HTTP ERROR: 500
Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
from param xwiki.store.migration.manager.class
Wrapped Exception: net.sf.cglib.proxy.Enhancer
RequestURI=/xwiki/bin/view/XWSAdmin/
Complete logs here : http://pastie.org/249438
Please help, it's been more than couple of hours since I am stuck in this. I
didn't change any configuration during kernel upgrade.
--
Arpit Jain
http://www.intinno.com