Via the application you can export spaces and pages offering to export
everything (by adding all spaces and containing pages). This will give you
a XAR file of the whole content.
Then you can import this XAR file via Administration > Import.
Again, if you have lots of (big) attachments I recommend switching to
filesystem attachments. There is also a documentation for that:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments#HFilesystem…
2015-04-21 16:11 GMT+02:00 Maciej Fokt <maciek.fokt(a)taxi123.pl>:
> Ok. I have this application.. so.. what now? (Sorry for my maybe stupid
> questions but XWiki is for me, black magic :p but it's really good tool)
>
> I would like to "take" all spaces to .zip file and import spaces with
> their contain to fresh installed XWiki.
>
> Thank you in advance for your help.
>
> Greetings,
> Maciek.
>
>
>
>
>
Hello,
I tried to make a backup of spaces. I made (I think correctly) backup of
one of space... and I deleted this space. Now I can't import this backup
.xar file... Why?!
File weight: 16.9 MB
Please tell me why..
Greetings,
Maciek.
When we have headers of level 1 or 2 inside the container macro it looks they can not be used as "section" in the Include/Display macro?
Or are we missing something?
Our goal is to have columns in a wide display that responsive change to a single column when the display (tablets, smart-phones) does not have enough width
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
> > I create MyClass/Sheet/Template and in
> another AnotherClass I add a Page type property with:
> > - Display Type : select
> > - XWiki Class Name: MyClass
> > - Id Field Name: doc.fullName
> > - Value Field Name : doc.name
> >
> > My purpose is to
> display a list of page (with MyClass object): this point is
> working well but ...
> >
>
> > I want that the user
> select in my select list: one page OR nothing.
>
...
> in
> order to add this item to a Page
> (actually DatabaseList) property you
> have to
> write a custom displayer. Another solution may be to create
Here I created a nice custom displayer in MyClass: Property type: Page (or database list)
It's filtered hidden doc and add one Empty entry in select list.
- Display Type : select
Hibernate Query (to filter hidden doc because http://jira.xwiki.org/browse/XWIKI-12031 issue): select distinct doc.name from XWikiDocument as doc, BaseObject as obj where doc.fullName=obj.name and obj.className='FormSMQ.EAClass' and doc.space='FormSMQ' and doc.hidden=false
Custom Display:
{{velocity}}
#if ($type == 'edit')
#set($MyClass=$object.getxWikiClass())
#set($list=$MyClass.get($name).getListValues())
#set ($MySelectList="<select id='" + "${prefix}_${name}" + "' size='1' name='" + $prefix + ${name} + "'>")
#set ($Selected="")
#if ($!value=='')
#set ($Selected=" selected='selected'")
#end
#set ($MySelectList=$MySelectList + "<option value=''" + $!Selected + " label='" + $services.localization.render('FormSMQ.PiacJ2Class.Empty') + "'>" + $services.localization.render('FormSMQ.PiacJ2Class.Empty') + "</option>")
#foreach($listitem in $list)
#if ($listitem==$value)
#set ($Selected=" selected='selected'")
#else
#set ($Selected="")
#end
#set ($MySelectList=$MySelectList + "<option value='" + $listitem + "'" + $!Selected + " label='" + $listitem + "'>" + $listitem + "</option>")
#end
#set ($MySelectList=$MySelectList + "</select>")
#set ($MySelectList=$MySelectList + "<input type='hidden' value='' name='" + ${prefix} + ${name} +"'>")
{{html clean=false}}
$MySelectList
{{/html}}
#elseif (($type == 'view') && ($!value!=''))
[[$value]]
#else
$value
#end
{{/velocity}}
Use $object.getxWikiClass().get($name).getMapValues() with XWiki Class Name: MyClass +Id Field Name: doc.fullName + Value Field Name : doc.name
First I used this awfull code (to forget of course):
#if ($type == 'edit')
#set ($propertyClass = $object.getxWikiClass().get($name))
#set ($MySelectList = $doc.displayEdit($propertyClass, $prefix, $object))
#set ($Empty=$services.localization.render('FormSMQ.PiacJ2Class.Empty'))
#if ($!value!='')
## if not empty, add "Empty" "option value"
#set($EmptyValueAdded='<option value="" label=' + $Empty + '>' + $Empty + '</option><option value=')
#set ($MySelectList = $stringtool.replaceOnce($MySelectList, '<option value=', $EmptyValueAdded))
#else
## if empty, add SELECTED "Empty" "option value"
#set($EmptyValueAdded="<option selected='selected' value='' label='" + $Empty + "'>" + $Empty + "</option>")
#set ($MySelectList = $stringtool.replaceOnce($MySelectList, "<option selected='selected' value='' label=''></option>", $EmptyValueAdded))
#end
Thxs for your help.
Pascal B
Hi,
I think my all problems will be resolve if I reinstall XWiki. Since I do
that i want to make a backup of all my spaces itp.
Could you tell me how to do that without changing something in code?
Greetings,
Maciek.
Hi Marius,
I am using 6.4.3 and the unmodified LiveTableResults macro. I haven't
tried this for a simple user since this is a (sub-)wiki that is
accessible only for Admin and guest (non-registered) users. I will try
to check this out later today.
Thanks,
Peter
users-request(a)xwiki.org schreef op 20-4-2015 om 14:00:
> Send users mailing list submissions to
> users(a)xwiki.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.xwiki.org/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-request(a)xwiki.org
>
> You can reach the person managing the list at
> users-owner(a)xwiki.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of users digest..."
>
>
> Today's Topics:
>
> 1. Livetable results for guest users (Peter Huisman)
> 2. Re: Livetable results for guest users (Marius Dumitru Florea)
> 3. create new xclass property (TOTOUM NEMKAM, Eva)
> 4. Re: create new xclass property (Marius Dumitru Florea)
> 5. Help me again ;) (Maciej Fokt)
> 6. Re: Help me again ;) (Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es)
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
Hi,
No, unless you prefer IDEA over Eclipse ;)
A lot of XWiki devs use Eclipse without problem.
This is not your problem here unless you’re building inside your IDE. Just run from the command line if that’s not already the case.
The issue could simply be that you’re on Windows and these custom sourcepaths may not work on Windows for some reason:
      <!-- We need custom sourcepaths for our Component Annotation Process work
        (See ComponentCheckerAnnotationProcessor.java). This is required because of
        http://jira.codehaus.org/browse/MCOMPILER-122.
        However note that IntelliJ IDEA doesn't honor custom sourcepaths, see
        https://youtrack.jetbrains.com/issue/IDEA-133120, which means that you need to turn off
        Annotation Processing in IDEA or IDEA will generate errors while building modules -->
      <execution>
       <id>default-compile</id>
       <configuration>
        <compilerArguments>
         <sourcepath>${project.basedir}/src/main/java:${project.basedir}/src/main/resources</sourcepath>
        </compilerArguments>
       </configuration>
      </execution>
      <execution>
       <id>default-testCompile</id>
       <configuration>
        <compilerArguments>
         <sourcepath>${project.basedir}/src/test/java:${project.basedir}/src/test/resources</sourcepath>
        </compilerArguments>
       </configuration>
      </execution>
For the moment try to turn off annotation processors and tell us if it builds fine:
mvn install -Dproc=none
Thanks
-Vincent
PS: Please always reply to the list!
On 18 Apr 2015 at 22:10:18, Khjintcorp (khjintcorp@gmail.com(mailto:khjintcorp@gmail.com)) wrote:
> Vincent,
>
> I use eclipse, do I need change to idea?
>
> Thanks
>
> Ken
>
> Sent from my iPhone
>
> On Apr 18, 2015, at 2:00 PM, "vincent@massol.net(mailto:vincent@massol.net)" wrote:
>
> >
> >
> >
> >
> > On 17 Apr 2015 at 22:47:00, Khjintcorp (khjintcorp@gmail.com(mailto:khjintcorp@gmail.com)) wrote:
> >
> > >
> > >
> > > Sent from my iPhone
> > >
> > > Begin forwarded message
> > > >
> > > > Hi Marius.
> > > >
> > > > I think this is related to MCOMPILER-122.
> > > >
> > > > (See ComponentCheckerAnnotationProcessor.java). This is required because of
> > > > http://jira.codehaus.org/browse/MCOMPILER-122.
> > > >
> > > > However note that IntelliJ IDEA doesn't honor custom sourcepaths, see
> > > > https://youtrack.jetbrains.com/issue/IDEA-133120, which means that you need to turn off
> > > > Annotation Processing in IDEA or IDEA will generate errors while building modules -->
> >
> >
> >
> >
> >
> > FTR I’ve fixed this on master (i.e.7.1-SNAPSHOT) and you don’t need to do anything in IDEA now, it’s turned off automatically if you’re doing a make inside IDEA.
> >
> >
> >
> >
> >
> >
> > Thanks
> >
> >
> > -Vincent
> >
> >
> >
> >
> >
> > >
> > > > ------------------------------------------------------------------------------------------------------------
> > > > Vincent Massol’ note
> > > >
> > > > I've hit this problem too.
> > > >
> > > > I've had to do the following (https://github.com/xwiki/xwiki-commons/blob/master/pom.xml#L762):
> > > >
> > > >
> > > > org.apache.maven.plugins
> > > > maven-compiler-plugin
> > > >
> > > > 3.2
> > > >
> > > > 1.7
> > > > 1.7
> > > >
> > > >
> > > >
> > > >
> > > > default-compile
> > > >
> > > >
> > > > ${project.basedir}/src/main/java:${project.basedir}/src/main/resources
> > > >
> > > >
> > > >
> > > >
> > > > default-testCompile
> > > >
> > > >
> > > > ${project.basedir}/src/test/java:${project.basedir}/src/test/resources
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > However this isn't perfect. It works in Maven but fails in IDEA (see https://youtrack.jetbrains.com/issue/IDEA-133120). I'm also not sure it works on Windows machines (but that could be fixed with profiles).
> > > >
> > > > In addition I've noticed that it runs javac with 2 -sourcepath parameters! For example:
> > > >
> > > > [DEBUG] -d /Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/target/classes -classpath /Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/target/classes:/Users/vmassol/.m2/repository/org/xwiki/commons/xwiki-commons-tool-component-generation/6.4-SNAPSHOT/xwiki-commons-tool-component-generation-6.4-SNAPSHOT.jar:
> > > > -sourcepath /Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/src/main/java:/Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/target/generated-sources/annotations:
> > > > -s /Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/target/generated-sources/annotations
> > > > -g -deprecation -target 1.7 -source 1.7 -encoding UTF-8
> > > > -sourcepath /Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/src/main/java:/Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/src/main/resources
> > > > -Xlint:all
> > > >
> > > > -------------------------------------------------------
> > > >
> > > > Do you know how to fix this in Window env
> > > >
> > > >
> > > > Thanks
> > > >
> > > > Ken
> > > >
> > > > From: LIANG, KEN K (CTR)
> > > > Sent: Friday, April 17, 2015 11:06 AM
> > > > To: 'khjintcorp@gmail.com(mailto:khjintcorp@gmail.com)'
> > > > Subject: Can'tbuild project xwiki-platform-wiki-default
> > > >
> > > > Hi Marius
> > > >
> > > > I used the entire xwiki-platform-wiki module on the clean master branch. I used window to build xwiki.
> > > >
> > > > Here is my configuration.
> > > > C:\Projects\xwiki-platform>mvn -version
> > > > Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-13T16:10:27-04:00)
> > > > Maven home: C:\apache-maven-3.3.1
> > > > Java version: 1.7.0_65, vendor: Oracle Corporation
> > > > Java home: C:\Program Files\Java\jdk1.7.0_65\jre
> > > > Default locale: en_US, platform encoding: Cp1252
> > > > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> > > >
> > > > I followed the direction on http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven. I can do clean, but not install.
> > > >
> > > > mvn clean install -Dxwiki.checkstyle.skip=true
> > > >
> > > > It seems that the components in any modules are not able to be compiled. Do I miss any steps in set up in order to build xwiki? I got the same issue when I try to build the xwiki-common package
> > > >
> > > > Thanks
> > > >
> > > > Ken
> > > >
> > > > On Apr 16, 2015 11:14:02 pm , Marius Dumitru Florea (mari...@xwiki.com(http://xwiki.com)) Wrote
> > > > What branch / tag of https://github.com/xwiki/xwiki-platform/ are you
> > > > building? Did you make any changes (is git status clean) ? Did you
> > > > configure Maven as per
> > > > http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
> > > > ? What OS are you using?
> > > >
> > > > I have no problem building the entire xwiki-platform-wiki module on
> > > > the clean master branch, using Maven 3.0.4 and Java 7 on Linux
> > > > (Ubuntu).
> > > >
> > > > Hope this helps,
> > > > Marius
> > > >
> > > > On Thu, Apr 16, 2015 at 6:58 PM, Khjintcorp wrote:
> > > > Hello
> > > >
> > > > I am new on Xwiki. I like to rebuild Xwiki platform or common packages. I fixed
> > > > all problems related to build. Except one thing if the module has component
> > > > codes or components.txt I always got builderror. Please see the attached error
> > > > log. I think I missed one thing but I don't know yet. Can you help me on this
> > > > issue.
> > > >
> > > > Thanks
> > > >
> > > > Ken
> > > >
> > > > Sent from my iPhone
> > > >
> > > > Begin forwarded message:
> > > >
> > > > From: "LIANG, KEN K (CTR)"
> > > > Date: April 16, 2015 at 10:13:14 AM EDT
> > > > To: "khji...@gmail.com(http://gmail.com)"
> > > > Subject: Can'tbuild project xwiki-platform-wiki-default
> > > >
> > > > [INFO] XWiki Platform - Wiki - Parent POM ................. SUCCESS [ 7.463 s]
> > > > [INFO] XWiki Platform - Wiki - API ........................ SUCCESS [ 8.459 s]
> > > > [INFO] XWiki Platform - Wiki - Default Implementation ..... FAILURE [ 25.449 s]
> > > > [INFO] XWiki Platform - Wiki - REST - Parent POM .......... SKIPPED
> > > > [INFO] XWiki Platform - Wiki - REST - API ................. SKIPPED
> > > > [INFO] XWiki Platform - Wiki - Template - Parent POM ...... SKIPPED
> > > > [INFO] XWiki Platform - Wiki - Template - API ............. SKIPPED
> > > > [INFO] XWiki Platform - Wiki - REST - Default implementation SKIPPED
> > > > [INFO] XWiki Platform - Wiki - Script services ............ SKIPPED
> > > > [INFO] XWiki Platform - Wiki - Template - Default ......... SKIPPED
> > > > [INFO] XWiki Platform - Wiki - Template - Script .......... SKIPPED
> > > > [INFO] XWiki Platform - Wiki - User - Parent POM .......... SKIPPED
> > > > [INFO] XWiki Platform - Wiki - User - API ................. SKIPPED
> > > > [INFO] XWiki Platform - Wiki - User - Default ............. SKIPPED
> > > > [INFO] XWiki Platform - Wiki - User - Script .............. SKIPPED
> > > > [INFO] XWiki Platform - Wiki - UI - Parent POM ............ SKIPPED
> > > > [INFO] XWiki Platform - Wiki - UI - Common ................ SKIPPED
> > > > [INFO] XWiki Platform - Wiki - UI - Main Wiki ............. SKIPPED
> > > > [INFO] XWiki Platform - Wiki - UI - Wiki .................. SKIPPED
> > > > [INFO] XWiki Platform - Wiki - Workspaces Migrator ........ SKIPPED
> > > > [INFO] ------------------------------------------------------------------------
> > > > [INFO] BUILD FAILURE
> > > > [INFO] ------------------------------------------------------------------------
> > > > [INFO] Total time: 43.351 s
> > > > [INFO] Finished at: 2015-04-16T10:11:32-04:00
> > > > [INFO] Final Memory: 72M/912M
> > > > [INFO] ------------------------------------------------------------------------
> > > > [ERROR] Failed to execute goal
> > > > org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on
> > > > project xwiki-platform-wiki-default: Compilation failure: Compilation failure:
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.manager.DefaultWikiCreator] isn't declared! Consider
> > > > adding a components.txt file or if it's normal use the "staticRegistration"
> > > > parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.descriptor.builder.DefaultWikiDescriptorBuilder] isn't
> > > > declared! Consider adding a components.txt file or if it's normal use the
> > > > "staticRegistration" parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.manager.WikiDescriptorCache] isn't declared! Consider
> > > > adding a components.txt file or if it's normal use the "staticRegistration"
> > > > parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.descriptor.listener.WikiDescriptorListener] isn't
> > > > declared! Consider adding a components.txt file or if it's normal use the
> > > > "staticRegistration" parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.manager.DefaultWikiDeleter] isn't declared! Consider
> > > > adding a components.txt file or if it's normal use the "staticRegistration"
> > > > parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper]
> > > > isn't declared! Consider adding a components.txt file or if it's normal use the
> > > > "staticRegistration" parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.descriptor.document.XWikiServerClassDocumentInitializer]
> > > > isn't declared! Consider adding a components.txt file or if it's normal use the
> > > > "staticRegistration" parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.provisioning.DefaultWikiCopier] isn't declared!
> > > > Consider adding a components.txt file or if it's normal use the
> > > > "staticRegistration" parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.descriptor.migrator.WikiDescriptorMigrator] isn't
> > > > declared! Consider adding a components.txt file or if it's normal use the
> > > > "staticRegistration" parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager] isn't
> > > > declared! Consider adding a components.txt file or if it's normal use the
> > > > "staticRegistration" parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.configuration.DefaultWikiConfiguration] isn't declared!
> > > > Consider adding a components.txt file or if it's normal use the
> > > > "staticRegistration" parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.descriptor.properties.DefaultWikiPropertyGroupManager]
> > > > isn't declared! Consider adding a components.txt file or if it's normal use the
> > > > "staticRegistration" parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.provisioning.DefaultWikiProvisioningJobExecutor] isn't
> > > > declared! Consider adding a components.txt file or if it's normal use the
> > > > "staticRegistration" parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] There's no [META-INF/components.txt] file and thus Component
> > > > [org.xwiki.wiki.internal.manager.DefaultWikiManager] isn't declared! Consider
> > > > adding a components.txt file or if it's normal use the "staticRegistration"
> > > > parameter as in "@Component(staticRegistration = false)"
> > > > [ERROR] -> [Help 1]
> > > > [ERROR]
> > > > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> > > > switch.
> > > > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > > > [ERROR]
> > > > [ERROR] For more information about the errors and possible solutions, please
> > > > read the following articles:
> > > > [ERROR] [Help 1]
> > > > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > > [ERROR]
> > > > [ERROR] After correcting the problems, you can resume the build with the command
> > > > [ERROR] mvn -rf :xwiki-platform-wiki-default
> > > > FATAL ERROR in native method: JDWP on getting class status,
> > > > jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)
> > > > JDWP exit error JVMTI_ERROR_WRONG_PHASE(112): on getting class status
> > > > [util.c:1283]
> > > >
Hi,
I used "inspector" to examine the element (still my problem with double
button on the top panel):
class="dropdown-split-right dropdown-toggle hidden-xs
dropdown-split-left"
Could anyone say something about this? Maybe I installed extension or
something... Please help me :p
I can't public XWiki with this bug.
Greetings,
Maciek.
Hello,
I'm writing in connection with the same problem as last time... I have
double buttons on the top panel.
Could you tell me how to hide this or switch off? I have cleared cache of
my web browser, installed and deleted extensions of XWiki... all don't
working.
Please help me. I will really happy if you sent me screen shots or
something to show me how to do that.
Screen shot with issue in attachment.
Greetings,
Maciek.