Hi,
I have the following question.
I have an main wiki (xwiki) and a subwiki (test)
I want to access objects from class ’space.someclassClass’ located on a page ‘space.somepage' in the main wiki
When in the subwiki, I have a query such as:
String query = "select name.value from XWikiDocument doc, BaseObject obj, StringProperty name where doc.fullName=obj.name and obj.className=‘space.someclassClass’ and” +
"obj.className<>’space.someclassTemplate’ and name.id.id=obj.id order by doc.title"
List<java.lang.Object[]> results = (List<java.lang.Object[]>) (List) this.queryManager.createQuery(query, Query.XWQL).setWiki(“xwiki").execute();
This gives me the name.value of the property of the object in the main wiki.
What I need however is something like:
String query = "select obj from XWikiDocument doc, BaseObject obj where doc.fullName=obj.name and obj.className=‘space.someclassClass’ and” +
"obj.className<>’space.someclassTemplate’ order by doc.title”
I expect this to return a BaseObject. When displaying this (toXMLString()), it is however an empty object:
<?xml version="1.0" encoding="UTF-8"?>
<object>
<name>space.somepage</name>
<number>0</number>
<className>space.someclassClass</className>
<guid>3c145abe-b334-4801-a100-24c8ef2eea9f</guid>
</object>
There is no way (that I have tried) that would give me the object of class “xwiki:space.someclassClass” that contains the properties that I need (and get using the first query).
I expect that it might have to do with the context but I’m not that familiar with it that I know how to do this.
Can someone please shed some light on this?
With kind regards,
Peter Huisman
Hi,
I have a page cronly updated with RESTful API and I want disable document versionning for this page only.
I want to save a little bit storage :-)
Is it possible and how?
If not I suppose I must schedule a full history wipe?
Thxs.
Pascal B
Hi All,
Could you please help me with information about debugging client part!
I don’t understand why I have in the GWT development mode this error:
[ERROR] Errors in 'org/xwiki/gwt/wysiwyg/client/converter/HTMLConverter.java’
[ERROR] Line 22: The import org.xwiki.component cannot be resolved
[ERROR] Line 32: Role cannot be resolved to a type
As I see this package org.xwiki.component.annotation exists in the xwiki-commons-component-api and client part includes this package as maven dependency...
I use file start_wysiwyg_noserver_debug.sh where I added maven dependencies now it looks like :
XE_VERSION=7.4;
GWT_VERSION=2.6.0;
GWT_INCUBATOR_VERSION=2.0.1;
SMART_GWT_VERSION=2.4;
M2_REPO=~/.m2/repository;
APP_DIR=`dirname $0`/webapps/xwiki;
java \
-Xmx1024m \
-Xdebug \
-Xnoagent \
-Djava.compiler=NONE \
-Xrunjdwp:transport=dt_socket,server=y,address=5006,suspend=y \
-cp \
$M2_REPO/org/xwiki/platform/xwiki-platform-gwt-dom/$XE_VERSION/xwiki-platform-gwt-dom-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-gwt-user/$XE_VERSION/xwiki-platform-gwt-user-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-oldcore/$XE_VERSION/xwiki-platform-oldcore-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/commons/xwiki-commons-component-api/8.0-SNAPSHOT/xwiki-commons-component-api-8.0-SNAPSHOT.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-wysiwyg-client/$XE_VERSION/xwiki-platform-wysiwyg-client-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-wysiwyg-server/$XE_VERSION/xwiki-platform-wysiwyg-server-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-wysiwyg-client/$XE_VERSION/xwiki-platform-wysiwyg-client-shared-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-wysiwyg-plugin-api/$XE_VERSION/xwiki-platform-wysiwyg-plugin-api-$XE_VERSION.jar:\
$M2_REPO/com/google/gwt/gwt-user/$GWT_VERSION/gwt-user-$GWT_VERSION.jar:\
$M2_REPO/com/google/gwt/gwt-dev/$GWT_VERSION/gwt-dev-$GWT_VERSION.jar: \
com.google.gwt.dev.DevMode \
-noserver \
-port 8080 \
-war $APP_DIR/resources/js/xwiki/wysiwyg \
-startupUrl xwiki/bin/edit/Sandbox/Test?editor=wysiwyg \
org.xwiki.gwt.wysiwyg.Wysiwyg
Best regards,
Maxim Birukov
Hello,
Is it possible to make the default editions are minor and not major ?
Regards,
Signature mails
_________________________________________________
Bruno Joffredo
Ecole Centrale de Nantes
Centre de Ressources Informatiques - Bur. D019
1 rue de la Noë
BP 92101
F-44321 Nantes cedex 3
Tél. 02.40.37.68.06
Mail : bruno.joffredo(a)ec-nantes.fr <mailto:bruno.joffredo@ec-nantes.fr>
_________________________________________________
HI users,
I was in the final testing phase of my component, like always I have ran my
Xwiki (version 7.3) then I have deleted the pages that I have to create
automatically with my component as well as those apges containing XClass
and the sheets. I don't know what I have done uncorrectly, but the point is
that now the terminal is saying that there is an* Error number 3202:
Exception while reading document [...] *for all the ages that I have
deleted, inside the wiki there is no pages to delete.
I have unistalled and re-installed my XWiki, and I have tried to create a
new wiki with the same identifier and the problem presists.
Any help?
Giordano.
Hi,
Sorry, I've not been getting the replies to these messages. I've re-subscribed to the list, so hopefully that is now resolved :)
I tried copy and pasting images on the http://playground.xwiki.org site, but didn't have any luck. I was copying these images directly from MS Word, but I also did try copying from a web browser (in this instance Chrome). Does that mean the demo site is not using the CKEditor and the out of the box editor doesn't support the copy and paste?
Thanks,
Stuart
From: Stuart Stephen
Sent: 23 February 2016 10:47
To: 'users(a)xwiki.org'
Subject: Feature Request: Allow copy & paste of images into WYSIWYG editor
Hi all,
In various web applications these days it is now possible to copy and paste images into web pages which makes the process of adding an image to a document online so much easier as you do not need to save it off somewhere, then upload it. Copy and paste makes the process so much more efficient.
See the upload feature on http://imgur.com/ for example, where they also support drag and drop.
Thanks,
Stuart
Disclaimer: The contents of this E-mail plus any attachment is intended for the use of the addressee only and is confidential, proprietary and may be privileged. It will not be binding upon Trace Group or any group company (Trace). Opinions, conclusions, contractual obligations and other information in this message in so far as they relate to the official business of Trace must be specifically confirmed in writing by Trace. If you are not the intended recipient you must not copy this message or attachment, use or disclose the contents to any other person, but are requested to telephone or E-mail the sender and delete the message and any attachment from your system. Trace takes all reasonable precautions to ensure that no virus or defect is transmitted via this e mail, however Trace accepts no responsibility for any virus or defect that might arise from opening this E-mail or attachments.
The XWiki development team is proud to announce the availability of XWiki
7.4.2.
This is a bugfix release that fixes important bugs discovered in the 7.4.1
version.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki742
The following people have contributed code to this release (sorted
alphabetically):
Alexandru Cotiugă
Denis Gervalle
Ecaterina Moraru (Valica)
Eduard Moraru
Guillaume Delhumeau
Sergiu Dumitriu
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team