Hello all,
after I changed my max upload size to 2Gb, and after having used the filesystem attachment, I thought it would be flawless to upload a 600 Mb but no. I get the following exception:
> Caused by: java.lang.OutOfMemoryError: Java heap space
> at java.util.Arrays.copyOf(Arrays.java:2786)
> at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
> at org.apache.commons.io.output.ProxyOutputStream.write(ProxyOutputStream.java:90)
> at org.apache.commons.codec.binary.BaseNCodecOutputStream.flush(BaseNCodecOutputStream.java:116)
> at org.apache.commons.codec.binary.BaseNCodecOutputStream.write(BaseNCodecOutputStream.java:97)
> at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1720)
> at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1696)
> at org.apache.commons.io.IOUtils.copy(IOUtils.java:1671)
> at com.xpn.xwiki.internal.xml.XMLWriter.writeBase64(XMLWriter.java:182)
> at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:413)
> at com.xpn.xwiki.doc.XWikiAttachment.toStringXML(XWikiAttachment.java:340)
> at com.xpn.xwiki.doc.XWikiAttachmentArchive.updateArchive(XWikiAttachmentArchive.java:180)
> at com.xpn.xwiki.doc.XWikiAttachment.updateContentArchive(XWikiAttachment.java:718)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachment(XWikiHibernateStore.java:1528)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachmentList(XWikiHibernateStore.java:1496)
Could it be that this copy is indeed copying the whole file?
paul
Hello all,
I've implemented some client side page validation using JavaScript which works well, but I want to implement some simple checks on server side also. I know how to evaluate the values in my UI using velocity after the page is submitted, but how do I prevent the page from saving if my criteria isn't met?
I'm getting the majorminor 51.0 error when running Xwiki v 6.3 on a Mac
with Java 8. From what I have been reading from support pages Xwiki 6.3
should work with Java 7 and later. I don't care to install Java 7 but
maybe I have to?
Jason
Hello,
To clean and Pull Request my patch I need to launch "mvn xar:format" command but I didn't managed to use it and didn't found a simple documentation about it (notice, I didn't eat a maven book either)
I don't want rebuild Xwiki package but I want only check/clean xml file (from XAR) before to pull request it on github.
Here my manipulation on my debian testing:- I installed current maven package (3.0.4 version)
- I create the conf file ~/.m2/settings.xml provided here: http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
(I'm behind a http proxy, then I add http://dev.xwiki.org/xwiki/bin/view/Community/Building#HBuildingbehindaproxy parameter in ~/.m2/settings.xm)
I download Xwiki source with theses commands:#Only first time
cd /home/git-wiki/
git clone https://github.com/XXXX/xwiki-platform.git
cd xwiki-platform/
git remote add upstream https://github.com/xwiki/xwiki-platform.git
git remote -v
# synchro before modify
cd /home/git-wiki/xwiki-platform/
git fetch upstream
git checkout master
git merge upstream/master
#branch creation and modif of files
git checkout -B XWIKI-MaBranche
vi /home/git-wiki/xwiki-platform/xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui/src/main/resources/XWiki/TagCloud.xm
Here my problems, I want to check TagCloud.xm with mvn xar:format:cd /home/git-wiki/xwiki-platform/xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui mvn -e xar:formatI obtain the insanity that I paste at the end of this mail!
To resume, howto check my tiny improvment with mvn xar:format?In the same time, I want to avoid maven download the entire world each time I launch it :-))
Thxs for yor help.
Pascal B
*****************************
root@buttle:/home/git-wiki/xwiki-platform/xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui# mvn -e xar:format
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building XWiki Platform - Tag - UI 6.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.962s
[INFO] Finished at: Fri Jan 09 10:24:42 CET 2015
[INFO] Final Memory: 19M/228M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project xwiki-platform-tag-ui: Could not resolve dependencies for project org.xwiki.platform:xwiki-platform-tag-ui:xar:6.4-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project xwiki-platform-tag-ui: Could not resolve dependencies for project org.xwiki.platform:xwiki-platform-tag-ui:xar:6.4-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.xwiki.platform:xwiki-platform-tag-ui:xar:6.4-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:256)
... 26 more
[ERROR]
[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/DependencyResolutionExcept…
*******************If I launch mvn -e xar:format from a directory without pom.xml file:
[ERROR] No plugin found for prefix 'xar' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), xwiki-plugins-snapshots (http://nexus.xwiki.org/nexus/content/groups/public-snapshots), xwiki-plugins-releases (http://nexus.xwiki.org/nexus/content/groups/public), central (http://repo.maven.apache.org/maven2)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'xar' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), xwiki-plugins-snapshots (http://nexus.xwiki.org/nexus/content/groups/public-snapshots), xwiki-plugins-releases (http://nexus.xwiki.org/nexus/content/groups/public), central (http://repo.maven.apache.org/maven2)]
Many thanks - the first option works fine for me.
----- Reply message -----
From: "Clemens Klein-Robbenhaar" <c.robbenhaar(a)espresto.com>
To: <users(a)xwiki.org>
Subject: Re: [xwiki-users] Manipulate presentation of LiveTable column data
Date: Thu, Jan 8, 2015 21:23
On 01/08/2015 03:15 AM, Bryn Jeffries wrote:
> I have a custom groovy script at DemoSpace.StudiesJSON that generates JSON of the form:
> {
> "totalrows": 5,
> "matchingtags": {},
> "tags" : [],
> "offset": 1,
> "reqNo": 0,
> "returnedrows": 1,
> "rows": [{"doc_viewable":true,"study_id":3,"study_name":"My Study","description":"A test study"}]
> }
>
> This is then called from a LiveTable macro as
> {{velocity}}
> #set($columns = ["study_name", "description", "study_id"])
> #set($options = {
> "resultPage":"DemoSpace.StudiesJSON"
> })
> #set($columnsProperties = {
> "study_name" : { "type" : "text", "displayName": "Study Name", "filterable": false },
> "description" : { "type" : "text", "displayName": "Description", "filterable": false },
> "study_id" : { "type" : "text", "displayName": "Study ID", "filterable": false }
> })
> #livetable("studyTable" $columns $columnsProperties $options)
> {{/velocity}}
>
> What I'd really like is to put links into each row, for instance replacing each entry in the first ("Study Name") column with a link of the form [[${study_name}>>StudyDetails?study_id=${study_id}]]. Is there a way to do this? I've tried generating a link in the JSON but the query strings seem to get corrupted and the link is lost in any case within the actual LiveTable.
>
I think you can do the following here:
- change the JSON script generating the results so that "study_name" contains the HTML you want, like:
> "rows": [{"doc_viewable":true,"study_id":3,"study_name":"<a href=\"/xwiki/bin/view/StudySpace/StudyDetails?study_id=3\">My Study</a>","description":"A test study"}]
- then set the columnsProperty for study_name to html:
> #set($columnsProperties = {
> "study_name" : { "type" : "html", ...
For a list of accepted options see here:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HParam…
Alternatively you could add your own "LiveTableRow renderer" in JavaScript, as explained in the "All Attachments" example on the same page:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HAllAt…
However this is a "all or nothing" solution - you will need to render all columns in the JavaScript, not only the ones you want to customize.
I would only use this solution if the first option is not sufficient for some reason.
Cheers
Clemens
> Thanks,
>
> Bryn
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
I have a custom groovy script at DemoSpace.StudiesJSON that generates JSON of the form:
{
"totalrows": 5,
"matchingtags": {},
"tags" : [],
"offset": 1,
"reqNo": 0,
"returnedrows": 1,
"rows": [{"doc_viewable":true,"study_id":3,"study_name":"My Study","description":"A test study"}]
}
This is then called from a LiveTable macro as
{{velocity}}
#set($columns = ["study_name", "description", "study_id"])
#set($options = {
"resultPage":"DemoSpace.StudiesJSON"
})
#set($columnsProperties = {
"study_name" : { "type" : "text", "displayName": "Study Name", "filterable": false },
"description" : { "type" : "text", "displayName": "Description", "filterable": false },
"study_id" : { "type" : "text", "displayName": "Study ID", "filterable": false }
})
#livetable("studyTable" $columns $columnsProperties $options)
{{/velocity}}
What I'd really like is to put links into each row, for instance replacing each entry in the first ("Study Name") column with a link of the form [[${study_name}>>StudyDetails?study_id=${study_id}]]. Is there a way to do this? I've tried generating a link in the JSON but the query strings seem to get corrupted and the link is lost in any case within the actual LiveTable.
Thanks,
Bryn
Hi,
I've started working with XWiki for a short time and I'm facing a probem
with the rights management.
I configured XWiki so every registered users have read permission as
default.
Then I created some private spaces with read access for a specific group
of users. Let's say group A has read permission on space A.
Other groups don't have access to this space A. So it is fine.
But I need sometimes to allow some specific groups or users to access
some specific pages in this space. For example, group B should have read
access on page 1 of space A.
I modified the access rights of the page accordingly. The problem is: it
doesn't work when the page is a subpage. It is working fine if the page
is at the root of the space.
Is it a normal behaviour? What shall I do to make this work?
Thanks.
Yvan Arnaud
Having installed the SVN Application from the extension manager and copying the attached jars into /usr/lib/xwiki/WEB-INF/lib/ I think I've almost got the tool running. However, I still get the following error when I try to list pages to be committed:
org.tmatesoft.svn.core.SVNException: svn: Cannot create directory '/usr/share/tomcat7/.subversion/auth/svn.simple'
Is there a configuration step that I've missed?
Thanks,
Bryn
I've recycled some code from the tutorials and snippets in my own code, and in particular I've used the following in some velocity scripts:
#set($offset = $util.parseInt($request.get('offset')))
which yields the following warning in the log:
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of method [com.xpn.xwiki.api.Util.parseInt] in 40:xwiki:DemoSpace.DemoPage@4,29
I notice in http://www.xwiki.org/xwiki/bin/view/FAQ/WhyDoIHaveDeprecatedUsageOfMethodXX… that a very similar warning is mentioned, but in the answer the recomendation is to switch from $xwiki.parseInt to $util.parseInt. But it looks like this has also been deprecated. So what should we be using instead?
Hello,
Is it possible to include a link to a page in edit mode WITH inline editor rather than view mode without using the full URL?
I applied this answer XWiki- Users - Link to page in edit mode without using full url?
but unfortunaly it doesn't work for inline editor :-((xpage=edit&editor=inline)
Thxs
Pascal B
Hi,
i'm new with XWiki. I've just installed the latest version 6.3 using the .deb package xwiki-enterprise-tomcat7-mysql on an Ununtu 14.04LTS server.
There were no issue during the installation. But when i connect to XWiki for the first time via the following URL : http://localhost:8080/xwiki, XWiki starts until 50% and the i get the following result :
Error number 4001 in 4: Error while evaluating velocity template colorThemeInit.vm
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while evaluating velocity template colorThemeInit.vm
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1637)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:243)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:676)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:243)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:676)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:243)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at com.xpn.xwiki.internal.template.TemplateManager.access$100(TemplateManager.java:98)
at com.xpn.xwiki.internal.template.TemplateManager$1.call(TemplateManager.java:670)
at com.xpn.xwiki.internal.template.TemplateManager$1.call(TemplateManager.java:666)
at com.xpn.xwiki.internal.template.SUExecutor.call(SUExecutor.java:91)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:665)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:358)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/distribution.vm]
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:262)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:676)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
... 135 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getColorThemeFromSkinFile' in class org.xwiki.lesscss.LessCompilerScriptService threw exception java.lang.OutOfMemoryError: Java heap space at 46:/templates/distribution.vm[line 105, column 38]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:261)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:243)
... 142 more
Caused by: java.lang.OutOfMemoryError: Java heap space
at org.mozilla.javascript.ScriptableObject.createSlot(ScriptableObject.java:2836)
at org.mozilla.javascript.ScriptableObject.getSlot(ScriptableObject.java:2756)
at org.mozilla.javascript.ScriptableObject.putImpl(ScriptableObject.java:2640)
at org.mozilla.javascript.ScriptableObject.put(ScriptableObject.java:492)
at org.mozilla.javascript.IdScriptableObject.put(IdScriptableObject.java:381)
at org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:2347)
at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1598)
at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1592)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_437(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5820)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)
at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_439(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5840)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_434(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5741)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_433(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5641)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_507(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:6546)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_483(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:6303)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_484(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:6329)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
I don't understand where the problem come from. Any help would be appreciated.
Thanks,
Stacy.
The XWiki development team is proud to announce the availability of XWiki
6.4 Milestone 3.
This milestone integrates the Ratings module inside platform, providing the
ability to rate extensions inside the Extension Repository and visualise
them inside Extension Manager. We have also added improvements for Flamingo
Skin on the responsiveness aspect, reintroduced the Wiki configuration
section in Administration and done massive work in augmenting the Mail
Sender API to be able to send large number of emails.
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/ReleaseNotesXWiki64M3
Thanks
-The XWiki dev team
Happy new year!
I recently came across this strange behaviour.
We are 20 users on our XWiki, we have identical rights on the wiki, we
authenticate via AD/LDAP.
Now 4 users get an error at the main URL /xwiki/bin/view/Main/ telling them
they do not have access to the page.
When I look at the user rights for Main they have the same rights as
everyone else and should be able to view it.
When the same users go to /xwiki/bin/view/Dashboard/ they can view that
just fine (it's the same content just a different view, right?)
Has anyone seen this behaviour before? Is there a simple fix, am I missing
something?
--
Regards/Mvh
Daniel Lundh
Hello,
I have a question about "create a new wiki" feature on xwiki, regarding the
code and after test, this feature create a schema.
In Oracle, to create a schema, you have to create user.
The problem is : "Oracle administrator don't allow xwiki user to create
user/schema" in oracle database ...
File :
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
308
Hope it's a lack of understanding on my side ?
What do you think, do you have a workaround ?
Thanks for your help
Hi,
i need to make the addition of 168 objects to a AppWithinMinutes. I can do
it programmatically, because the user should do it in a simple way. Is there
an url which i can use or did someone a workaround for it?
When not the only way i can think of is to create a new document with a
embedded object manually by code.
Regards,
Matthias
--
View this message in context: http://xwiki.475771.n2.nabble.com/AppWithinMinutes-Add-Entry-by-Link-from-a…
Sent from the XWiki- Users mailing list archive at Nabble.com.
The Curriki developers' team is happy to announce that Curriki 1.17 is now released and deployed to www.curriki.org .
This release fixes a number of bugs and adds the support for serving the static resources (such as JS, pictures, or CSS files that are part of the webapp) from a cloud distribution network.
Curriki has chosen the Amazon Web Service S3 upload and Cloudfront CDN solution.
This release required a number of adjustments in the internals (a URL factory) and quite some skin adjustments, often because absolute URLs that refer to CDN resources often get caught by the wiki syntax processor.
We are thrilled to bring this release to the users' community of curriki.org for a better responsiveness and to the developers of the XCLAMS-based platforms.
XCLAMS, the XWiki Collaborative Learning Assets Management System, is a web-service based on the XWiki platform that enables learning resources to be exchanged, developed, and shared following the Open Educational Resources model.
The source of the Curriki.org XCLAMS branch is at:
https://github.com/xwiki-contrib/currikiorg/commit/72b6e963ecd9e9794bda5f8d…
The commit of the release is: https://github.com/xwiki-contrib/currikiorg/
For more details about bug fixes, see the jira version:
http://jira.xwiki.org/secure/ReleaseNote.jspa?projectId=10160&version=15062
More information about XCLAMS in general see http://xclams.xwiki.org .
The XWiki developers' team
Paul, Bob, Todd, and Felix
subject: [myxwiki] new wiki request1
description: collecting ideas and experiance with my own DIY's (mostly private od small user group)
owner name: Frank_Albert
wiki name: ossiostborn
Why does a page containing just the following produce no output?:
{{groovy}}
class Callee {
void hello() {
println "hello, world"
}
}
c = new Callee()
c.hello()
{{/groovy}}
I have programming rights, and running scripts in general works fine. It's just when I try to invoke a method from a locally defined class that I hit problems.
Hello all,
what would be the best way to show pictures/thumbnails from an active directory in an xwiki site?
So far, we are using groovy to contact an active directoy, extract user info, like name, mail, phone etc and return xwiki 2.0 syntax, see code below
Now we would love to extend that contact list with photos stored in the active directory.
Would that be possible? If so, how?
Thanks in advance,
Florian
---
// KE1019746, März 13, fke
// list contact data
// to be included via includeInContext-Marco
//
// CAUTION: has to saved by user with programming rights
// import lib for ldap access
import org.apache.directory.groovyldap.*
// ldap connection
ldap = LDAP.newInstance('ldap://ad-server/', 'ldapbind', 'secret')
ldapsearchParams = new Search()
ldapsearchParams.base = 'OU=People,DC=domain,DC=de'
ldapsearchParams.scope = SearchScope.SUB
// for each letter in the alphabet
//for ( letter in (('A'..'Z') + ('0'..'9')) ) {
for ( letter in [ 'F' ] ) {
ldapsearchParams.filter = '(&(|(memberOf=CN=CN1-FIXME)(memberOf=CN=CN2-FIXME))(sn=' + letter.toLowerCase() + '*))'
// do the query
resultsUnsorted = ldap.search(ldapsearchParams)
// ldap output isn't sorted
// http://www.openldap.org/lists/openldap-software/200003/msg00058.html
// 'A robust client should not rely on servers maintaining any
// particular order over what are defined as unordered sequences.
//
// If your client wants to present the attributes and their values
// in some order, it should order them itself.'
//
// results is an array of hashed maps:
// groovy:000> println results.getClass()
// class java.util.ArrayList
// groovy:000> println results[3].getClass()
// class java.util.HashMap
//
// sort the array depending on the value of the field 'cn'
results = resultsUnsorted.sort { it.sn }
println results
// if results contains at least one cn, i.e. ldap search result isn't emtpy
if ( results.isEmpty() == false) {
println '' // xwiki markup stunt - new line necessary to not merge different letters to one xwiki table
println '==' + letter // xwiki markup - header
println '|=Name|=Funktion|=Tel|=Mobile|=Privat|=Fax'
for (entry in results) {
if ( ! ( entry.dn.toUpperCase() =~ 'DEAKTIVIERT' ) ) {
print '|'
if ( entry.sn ) {
print entry.sn
}
if ( entry.givenname ) {
print " "
print entry.givenname
}
print '|'
if ( entry.title ) {
print entry.title
}
print '|'
if ( entry.telephonenumber ) {
print entry.telephonenumber
}
print '|'
if ( entry.mobile ) {
print entry.mobile
}
print '|'
if ( entry.homephone ) {
print entry.homephone
}
print '|'
if ( entry.facsimiletelephonenumber ) {
print entry.facsimiletelephonenumber
}
print '|'
if ( entry.thumbnailphoto ) {
byte [] picture = entry.thumbnailphoto
//print entry.thumbnailphoto
print picture
}
println '' // xwiki markup to 'close' table
//} else {
// println 'No Match for ' + entry.dn.toUpperCase()
}
} // end for-token-loop
} // end results-isnt-Empty
} // end for-letter-in-alphabet-loop
Hello everyone,
I need to manipulate user and groups (create/delete) via the REST-API. Has anyone done this before? Maybe he/she is willing to share their scripts?
I appreciate any help. So if anyone can point me in the right direction this would be great.
I started here:
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HXWikiRES…
But I always get the result:
The server has not found anything matching the request URI.
Thank you for your help,
Chris
Je serai absent(e) à partir du 22/12/2014 de retour le 29/12/2014.
je suis en congés.
Je répondrai à vos messages dès mon retour.
En cas de problème technique, veuillez contacter SYNOX au 05 67 34 66 56.
Merci
I was thinking basic current side AJAX, rather than doing something server side in Velocity. It's not my area, but I'm sure it's possible. The idea is just too get your browser to call the CGI script.
----- Reply message -----
From: "Jason Clemons" <jason.clemons(a)live.com>
To: "XWiki Users" <users(a)xwiki.org>
Subject: Re: [xwiki-users] Run external script to generate data for wiki page
Date: Fri, Dec 19, 2014 12:02
I have control over the script..so it can be in the CGI bin...would I then be able to invoke it through velocity?
> On Dec 18, 2014, at 6:01 PM, Bryn Jeffries <bryn.jeffries(a)sydney.edu.au> wrote:
>
> How "external" is the external script? Couldn't you wrap the script into a cgi script on the same server and invoke it from the client with an AJAX call?
> ________________________________________
> From: Jason Clemons [jason.clemons(a)live.com]
> Sent: 19 December 2014 10:00
> To: 'XWiki Users'
> Subject: Re: [xwiki-users] Run external script to generate data for wiki page
>
> Bump... :)
>
> Hello all,
>
> I'm wondering if anyone has done anything like this before so, I thought I'd
> ask it here. Essentially, what I want to do is have a page / form that my
> users fill out and then submit. Upon submit I need to invoke an external
> script (e.g..Perl, Python, VBScript, Batch etc...) that will do some quick
> data gathering then insert some data in a database. Once the script
> generates the data the page will then retrieve it and render some results
> based on it. Most of the mechanics I can figure out I think, but I wanted
> to get some tips on the best way to actually invoke the script from a page
> in Xwiki.
> Any ideas or suggestions are appreciated...
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
I have managed the following with an external PostgreSQL server:
Retrieve and display queried data in a page with Groovy;
Write a Java component to perform query, call and display with Groovy or Velocity;
Generate JSON data of query results with Groovy, call and display from LiveTable.
Happy to share but not near my computer till later today, so let me know which of the above is closest to what you want to do and I'll post something when I can.
----- Reply message -----
From: "Jason Clemons" <jason.clemons(a)live.com>
To: "Xwiki Users" <users(a)xwiki.org>
Cc: "Clemons Jason" <jason.m.clemons(a)aexp.com>
Subject: [xwiki-users] Query external MSSQL DB in a wiki page
Date: Tue, Dec 9, 2014 08:26
Hello,
Can anyone point me in the right direction? I'm trying to query and external Microsoft SQL database from a wiki page. My current wiki runs on MSSQL just fine using sqljdbc4.jar configured with hibernate. The DB I want to query is actually on the same server, I can actually make it appear in the same DB if that makes things easier.
I've looked at SQL Tools extension --> http://extensions.xwiki.org/xwiki/bin/view/Extension/SQL+Tools and I can get that to work just fine even querying the other database, but I don't know how to make the results of a query from that tool appear in a separate page I've created for use in Velocity for example.
I've tried to get the example on the "Execute SQL" page here --> http://extensions.xwiki.org/xwiki/bin/view/Extension/Execute+SQL to work but I get a Groovy error on the second snippet and nothing at all appears on the page using the first snippet (but no error).
I've also looked at this plugin --> http://xwikisql.gradsoft.ua/docs/XWikiSqlPluginGuide.html but it hasn't been updated since 2008, so I'm not really sure that's a good idea from a sustainability perspective in a production environment.
Ultimately, I will have a flat table in some database, really any database (e.g..it can be the XWIKI DB)..and I need to be able to get the rows and columns from the table and expose them as an HTML table in my wiki page. Once I figure out how to get the data making it into a table is easy enough, but I can't even figure out how to get an object or array with the data in it to iterate.
All help is greatly appreciated.
Thanks in advance,
Jason
> Hello all,
>
> I'm wondering if anyone has done anything like this before so, I thought I'd ask it here. Essentially, what I want to do is have a page / form that my users fill out and then submit. Upon submit I need to invoke an external script (e.g..Perl, Python, VBScript, Batch etc...) that will do some quick data gathering then insert some data in a database. Once the script generates the data the page will then retrieve it and render some results based on it. Most of the mechanics I can figure out I think, but I wanted to get some tips on the best way to actually invoke the script from a page in Xwiki.
>
> Any ideas or suggestions are appreciated...
The XWiki development team is proud to announce the availability of XWiki
6.4 Milestone 2.
This version brings mainly UI improvements in the Menu application, Mail
application and Flamingo skin, while offering developers the ability to
write LESS in Skin Extensions, a cool icon picker and new ConfigurableClass
and Mail Sender API features.
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/ReleaseNotesXWiki64M2
Thanks
-The XWiki dev team
Hi Xwiki Members,
We're working on a brand new instance of our intranet using XE6.3.
Despite the very nice new features, one of them - maybe the most
important for our use case - is not working: the Menu Application. It
was the first and only extension I've installed since now on a fresh new
standard 6.3 using flamingo skin, following the instructions on the menu
application page -
http://extensions.xwiki.org/xwiki/bin/view/Extension/Menu+Application
<http://extensions.xwiki.org/xwiki/bin/view/Extension/Menu+Application>.
I have only the Admin user so far. I've created the same sample menu
using the app documentation, set to display after the page header,
selected current wiki (tested all the options by the way) and nothing
happened. The XWikiAdminGroup has programming rights selected. I've
simply changed to colibri skin in WebPrefs look and feel section and
also not worked.
Am I losing any config/setup step? How can I check what's happening?
I've not tested 6.4M2 yet, once it brings improvements on look and feel
to Menu Application. I would like to learn and get the Menu working on
6.3 first.
Could you help me?
Best Regards,
--
Ramon Gomes Brandão
**
**
*RAMON BRANDÃO*
I tried, but the various "getTranslated" method return exactly the same document instance as the one they are called on. Because the document is not yet translated. They all seems to work in the model "is translation exist, return it. Otherwise return the default document", which is not what i am looking for.
----- Mail original -----
De: "Clemens Klein-Robbenhaar" <c.robbenhaar(a)espresto.com>
À: "users" <users(a)xwiki.org>
Envoyé: Lundi 15 Décembre 2014 18:54:04
Objet: Re: [xwiki-users] setting translation from groovy
Hi,
just a quick response ... I have not really tried, but as far as I remember something like:
translatedDoc = newDoc.getTranslatedDocument(language)
should work.
The explanation is that translations of given document are not completely different documents (so you do not have to make a copy to create them),
but instead "variants" of the document in the default language, so you can access them directly from the document itself
HTH
Clemens
On 12/15/2014 12:01 PM, David Delbecq wrote:
> Hello,
>
> say i want to create a new Xwikidocument in groovy, and i want this document to already have two languages. I tried to use this code in groovy and various other variants, but xwiki keep creating a single version of document, with content in last language of loop and default language in the default locale of user executing script. It's just ignoring any tip on local. How can I set translations?
>
> Note: my final purpose is so that a user can upload 2 versions of a odt file in a form, and i will automatically load it in the concerned translations. Setting translation content is the last bit i am missing. I can't find any method in xwiki api that says "here is content translated in language xx" :/
>
>
> newDoc = xwiki.getDocument(new DocumentReference("xwiki","Memorandum","Memo-1234","en"));
> newDoc.getDocument().setDefaultLanguage(defaultLanguage);
> referenceDocument = "Memorandum.Memo-"+number
> for (language in ["fr","nl","en"]){
> if (title[language] !=null && title[language].trim().length()>0){
> println("new document in "+language)
> translatedDoc = new Document(
> newDoc.getDocument().copyDocument(
> new DocumentReference("xwiki","Memorandum","Memo-1234",language),
> xcontext.getContext()),
> xcontext.getContext())
> translatedDoc.setContent("Hello in "+language+": "+title[language])
> translatedDoc.save();
> }
> }
>
>
> Any advice would be greatly welcomed
> David Delbecq
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
mit freundlichen Grüßen
Clemens Klein-Robbenhaar
--
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
robbenhaar(a)espresto.com
HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hello,
say i want to create a new Xwikidocument in groovy, and i want this document to already have two languages. I tried to use this code in groovy and various other variants, but xwiki keep creating a single version of document, with content in last language of loop and default language in the default locale of user executing script. It's just ignoring any tip on local. How can I set translations?
Note: my final purpose is so that a user can upload 2 versions of a odt file in a form, and i will automatically load it in the concerned translations. Setting translation content is the last bit i am missing. I can't find any method in xwiki api that says "here is content translated in language xx" :/
newDoc = xwiki.getDocument(new DocumentReference("xwiki","Memorandum","Memo-1234","en"));
newDoc.getDocument().setDefaultLanguage(defaultLanguage);
referenceDocument = "Memorandum.Memo-"+number
for (language in ["fr","nl","en"]){
if (title[language] !=null && title[language].trim().length()>0){
println("new document in "+language)
translatedDoc = new Document(
newDoc.getDocument().copyDocument(
new DocumentReference("xwiki","Memorandum","Memo-1234",language),
xcontext.getContext()),
xcontext.getContext())
translatedDoc.setContent("Hello in "+language+": "+title[language])
translatedDoc.save();
}
}
Any advice would be greatly welcomed
David Delbecq
Hi!
The default displayer for users is failing with guest (http://jira.xwiki.org/browse/XWIKI-11472)
Fix shown in this issue works fine for colibri skin, but fails for flamingo. Does anyone have a solution?
Kind regards,
Dmitry
Hi,
First, sorry for my bad english.
I've got an issue when i want to import a XAR file (size : 53 mb). When i
want to import it, i've got an error message who said that max size for the
import is 32 Mb.
I understood the the WikiStream allowed to import files of any size.
So can you explain me why i've got a limit and, if it's possible, how i can
bypass them.
Thanks.
Kevin.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Xwiki-6-3-issue-when-import-xar-file-larg…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I have a groovy script that takes an array of table data and formats it in a table as follows. As you can see, I'd like to wrap the table in a form.
{{groovy}}
// [... supplied with array of 2-element arrays...]
println "{{html}}"
println "<form action=\"\" name=\"chooseForm\" method=post>"
println "<input type=hidden name=\"step\" value=\"choose\" /><input type=hidden name=\"form_token\" value=\"${services.csrf.getToken()}\" />"
println "{{/html}}"
println '|= |= Col 1|= Col2'
int lineNo = 0;
for (row in rows) {
if(lineNo!=0) { // Skip first (header) line
print "| {{html}}<input type=checkbox checked=\"checked\" name=\"choose${lineNo}\" form=\"chooseForm\" />{{/html}}"
print "| {{html}}<input type=text name=\"col1_${lineNo}\" form=\"chooseForm\" value=\"${row[0]}\"/>{{/html}}"
print "| {{html}}<input type=text name=\" col2_${lineNo}\" form=\"chooseForm\" value=\"${row[1]}\" />{{/html}}"
print '\n'
}
++lineNo;
}
print "| {{html}}<input type=submit /></form>{{/html}}"
{{/groovy}}
The problem is that the first {{html}} block closes the form before the table is started. Note that I have tried using ##form="chooseForm"## in the inputs within the table to associate them with the form, but this didn't work, at least with Firefox, since the data for these inputs does not get included in the POST content. Obviously I could use Javascript to modify the form, but I was aiming for a JS-free solution. Any ideas?
Hi everyone,
= Short Story =
I propose to change the behaviour of the top level menu from Flamingo
for tablet and desktop screens (so NOT for phones) to match the
behaviour we had in 6.2 BUT improving the separation between the
navigation links and the drop down toggle. The idea is that the top
level menu entries should behave like a drop down button (e.g. the Add
button) but without looking like one. You can see some screen shots at
http://jira.xwiki.org/browse/XWIKI-11517.
= Long Story =
I've heard complains that the current behaviour of the top level menu
from Flamingo skin is not perfect. The issue is that you need to click
twice to navigate. Ok, with a mouse you can use the middle click
(wheel) to open the link in a new tab but still it's annoying for
simple uses and for those that use the touch pad or a tablet.
An alternative I have investigated in
http://jira.xwiki.org/browse/XWIKI-11479 is to open the menu on hover
(on devices that support this of course). The result is quite nice and
effective but there is a problem: if you have a second horizontal menu
displayed under the top level menu then you'll have a hard time
hovering the second menu. So I decided to close XWIKI-11479 as Won't
Fix. For those that like the open-on-hover behaviour and which don't
plan to use a second menu I've published this extension
http://extensions.xwiki.org/xwiki/bin/view/Extension/Hover+and+Default+Acti…
.
The other alternative to fix the problem is to go back to the
behaviour from 6.2. Precisely, each menu has two sides:
* on the left is the label which is a link used for navigation
* on the right there is a toggle (arrow) used to open the menu.
The problem with this, and the reason we change it in 6.3, was that
the label and the toggle were not separated very well so the user
could easily think they were doing the same action (opening the menu).
At the same time this separation felt unnatural on extra small screens
(phones) because you couldn't tap easily on the toggle (arrow).
The solution I propose is to:
* Keep the current behaviour for extra small screens (phones). That
means the use has to tap twice to navigate: one tap to open the menu
and another one on the "Go to this XYZ".
* On desktop and tablet enable the default action (navigation link) as
in 6.2 but improve the separation so that the menu behaves as much as
possible as a drop down button (e.g. the Add button) without looking
like one. This means:
** You should understand there are two sides without hovering
** Separate hover and active state (e.g. the link is not hovered when
the toggle is hovered)
I've investigated *many* ways to achieve this and the result can be
seen on http://jira.xwiki.org/browse/XWIKI-11517. This is close to
http://extensions.xwiki.org/xwiki/bin/view/Extension/Enable+Default+Action+…
but not the same.
NOTE: The way the menu behaves and looks on hover and click (text and
background color) is strictly determined by the color theme. Some
themes highlight the hovered menu items by changing their background
color, others the text color and some do both. My changes are
independent on this. We can of course improve the default color theme
to better highlight the menu items. This is a different topic though.
I'd like to commit this changes in 6.4. Here's my +1.
Thanks,
Marius
Hello - is it possible to enable searching of additional filetypes within XWiki 6.2.4? Specifically I would like to be able to search attachments that are 7-Zip .7z archives. It looks to me as though the underlying library (Commons Compress) supports this filetype, but I am a new XWiki user and non-java programmer so I may be assuming too much.
Thanks in advance for your thoughts on this -
Garth Arnold
________________________________
GHC Confidentiality Statement
This message and any attached files might contain confidential information protected by federal and state law. The information is intended only for the use of the individual(s) or entities originally named as addressees. The improper disclosure of such information may be subject to civil or criminal penalties. If this message reached you in error, please contact the sender and destroy this message. Disclosing, copying, forwarding, or distributing the information by unauthorized individuals or entities is strictly prohibited by law.
Hi,
Using XWiki Enterprise 5.2, standalone install. We notice dots (.) in
page titles are escaped in HSQLDB (e.g. when I cat the contents of
xwiki_db.log and grep something particular in the article I'm seeking) :
INSERT INTO XWIKIDOC VALUES(...,'Ressources.Some page title with
accented characters in French (2007)\. Plan de rel\u00e8ve bla bla de
salle d''op\u00e9ration',
We can see all accented characters and special characters like the
apostrophe in the last word ("d'opération") are escaped, but then the
dot in the title next to "(2007)" gets escaped too.
I guess the reason it is escaped in the title is that the dot is used as
a separator for the wiki hierarchy (Resources.Some page really is like
the directory structure in our XWiki instance, that is Ressources/Some
page). Is that so ? Can we change that behaviour or do I have to tell
my users to stop using dots (and possibly other special characters ?) in
page titles ?
Thanx for pointers,
Yves Moisan
I think the problem has more to do with the FileUploadPlugin returning an array containing entries for all form field items, not just the file inputs. Also, the FileItem getFile(FormFieldName) method in the plugin is not exposed in the FileUploadPlugin API, so I had to resort to getting the whole List<FileItem> and iterating through to finding one with a matching field instead of assuming I knew the correct index.
I'm keeping my fingers crossed that the XWiki folks don't start using one-based arrays </shudder>
> -----Original Message-----
> From: Hamster [mailto:teunham@hotmail.com]
> Sent: Tuesday, 9 December 2014 9:04 PM
> To: users(a)xwiki.org
> Subject: Re: [xwiki-users] Reading a file submitted from a form
>
> The joy of zero-based vs one-based arrays :-)
>
Hello all,
I have an issue with some Velocity code I got from here ---> http://extensions.xwiki.org/xwiki/bin/view/Extension/Create+Page+With+Object
When the code runs the resulting page is created and the template is used, but none of my users can edit the page after (not even the admin). It looks like the template page was actually included in the page, not that the page was created "from" the template.
Here is the code I'm using:
{{velocity}}
#set($newDoc = $xwiki.getDocument("Sandbox.TestPage"))
$newDoc.setTitle("TestPage")
$newDoc.setParent("Sandbox.WebHome")
$newDoc.setContent('{{include document="Templates.TemplateToUse"/}}')
$newDoc.save()
{{/velocity}}
When I go to my space and create a new page manually and select to use a template for the new page the resulting page CAN be edited appropriately using the EXACT SAME TEMPLATE, so I'm very confused.
Any help is greatly appreciated
Hi,
I have a form as follows:
{{html}}
<form action="" enctype="multipart/form-data" method="post">
<input type="hidden" name="addFile" value="true" />
<input type="file" id="myupload" name="newfile" />
<input type=submit>
</form>
{{/html}}
And I'd like to perform a simple check that I can access the file (by returning the file size and a line-by-line echo) using a velocity script:
{{velocity}}
## If this page is called with addStudy=true then do something with the information
#if ($request.addFile == "true")
{{info}}Request received to add file{{/info}}
#set ($fileUpload = $xwiki.fileupload)
#set ($newFileName = $fileUpload.getFileName("newfile"))
#if (!$newFileName)
{{warn}}Failed to find submitted file{{/warn}}
#else
Found file $newFileName to load
#set ($discard = $fileUpload.loadFileList())
#set ($fileitem = $fileUpload.getFileItems().get(0))
Found file item for $fileitem.getFieldName() to load, of $fileitem.getSize() bytes
#set ($filestream = $fileitem.getInputStream())
{{info}}filestream.getText(){{/info}}
$filestream.getText()
{{info}}filestream.readLines(){{/info}}
#foreach($line in $filestream.readLines())
| $line
#end
#end
#end
{{/velocity}}
And also with a Groovy script:
{{groovy}}
if(request.addFile == "true") {
println "{{info}}addFile requested {{/info}}"
fileUpload = xwiki.fileupload
newFileName = fileUpload.getFileName("newfile")
if(newFileName != null) {
println "Found file $newFileName to load"
fileUpload.loadFileList()
fileitem = fileUpload.getFileItems().get(0)
println "Found file item for ${fileitem.getFieldName()} to load, of ${fileitem.getSize()} bytes"
filestream = fileitem.getInputStream()
println "{{info}}filestream.getText(){{/info}}"
println filestream.getText()
println "{{info}}filestream.eachLine{{/info}}"
filestream.eachLine {
println "${it}"
}
} else {
println "Failed to find submitted file"
}
}
{{/groovy}}
I've tested this page out with a 3kb text file, and both scripts tell me I have a 4 byte file and I get no lines returned. I'm sure I'm being a total noob, but can somebody please put me out of my misery and explain why this isn't working?
The consortium that I am currently working for is interested in using XWiki for managing its projects and performing some reporting. Supporting this is beyond my current skillset and availability, so I'm interested in sponsoring this work. I know the sponsor system is quite new, but I'd appreciate any guidance on how one should determine a reasonable fee for such work. What sort of amount is likely to generate sufficient interest from active XWiki developers?
Thanks,
Bryn
Hello,
Can anyone point me in the right direction? I'm trying to query and external Microsoft SQL database from a wiki page. My current wiki runs on MSSQL just fine using sqljdbc4.jar configured with hibernate. The DB I want to query is actually on the same server, I can actually make it appear in the same DB if that makes things easier.
I've looked at SQL Tools extension --> http://extensions.xwiki.org/xwiki/bin/view/Extension/SQL+Tools and I can get that to work just fine even querying the other database, but I don't know how to make the results of a query from that tool appear in a separate page I've created for use in Velocity for example.
I've tried to get the example on the "Execute SQL" page here --> http://extensions.xwiki.org/xwiki/bin/view/Extension/Execute+SQL to work but I get a Groovy error on the second snippet and nothing at all appears on the page using the first snippet (but no error).
I've also looked at this plugin --> http://xwikisql.gradsoft.ua/docs/XWikiSqlPluginGuide.html but it hasn't been updated since 2008, so I'm not really sure that's a good idea from a sustainability perspective in a production environment.
Ultimately, I will have a flat table in some database, really any database (e.g..it can be the XWIKI DB)..and I need to be able to get the rows and columns from the table and expose them as an HTML table in my wiki page. Once I figure out how to get the data making it into a table is easy enough, but I can't even figure out how to get an object or array with the data in it to iterate.
All help is greatly appreciated.
Thanks in advance,
Jason
Hello !
on one wiki page I have a skript to delete a comment on another page. But when a user that has no edit right tries to do it, it fails. Is there a way to go around this and let the user delete the comment as if he had edit rights?
for reference here is my simplified code
{{groovy}}
yourDocReference = new org.xwiki.model.reference.DocumentReference('xwiki','Main','WebHome');
yourDoc = xwiki.getDocument(yourDocReference);
comment = yourDoc.getComments();
if(comment.isEmpty()){
println("No Comment to remove!");}
else{
yourDoc.removeObject(comment[comment.size()-1]);
yourDoc.save();
println("First comment removed !")}
{{/groovy}}
thanks for the help
Adrien
Hello:
I would like to use xwiki to write text articles. A page would be
created for each article.
Then I would like to read this article from a java web application that
would publish it on that site.
Seems like this should be doable. I'm just learning xwiki so I need
someone with more understanding of xwiki to help
me plan.
Using a url, how to do lookup of the page (my article) in xwiki?
Thanks
lee
Hello,
In ./skins/flamingo/less/bootstrap/variables.less we found:
//== Media queries breakpoints
//
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
...
// Small screen / tablet
//** Deprecated `@screen-sm` as of v3.0.1
@screen-sm: 768px;
@screen-sm-min: @screen-sm;
Then I want use "screen-sm-min" in a new SSX object but this doesn't work:@media (min-width: @screen-sm-min) {
h1 {
color: fuchsia;
}}(If I replace screen-sm-min with his value 768px, my SSX work well.)
Is it normal than @screen-sm-min doesn't work in a SSX?Thxs
Pascal B
Hi Vincent,
To push XWiki a biiig step forward, you should think about improving the WYSIWYG editor in my opinion. Always if I explain users XWiki I can see surprised faces, if they see the limited possibilities of the editor. Especially 2 features are always highlighted to keep their "MS Office" way of working:
1. Table handling (formatting and usage - today not only displaying tables is needed)
2. Pasting images in a page in edit mode via clipboard.
THX
Matthias
-----Original Message-----
From: users [mailto:users-bounces@xwiki.org] On Behalf Of users-request(a)xwiki.org
Sent: Freitag, 5. Dezember 2014 16:34
To: users(a)xwiki.org
Subject: users Digest, Vol 89, Issue 7
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. What would you like to see in the XWiki 7.x cycle?
(=?utf-8?Q?vincent=40massol.net?=)
2. Re: What would you like to see in the XWiki 7.x cycle?
(Daniel Lundh)
3. run document skript with admin rights (Adrien Moi)
4. Re: What would you like to see in the XWiki 7.x cycle?
(Pascal BASTIEN)
5. I can not use less variable in a SSX (Pascal BASTIEN)
6. Re: I can not use less variable in a SSX
(Ecaterina Moraru (Valica))
7. Re: I can not use less variable in a SSX
(Ecaterina Moraru (Valica))
----------------------------------------------------------------------
Message: 1
Date: Fri, 5 Dec 2014 13:17:43 +0100
From: "=?utf-8?Q?vincent=40massol.net?=" <vincent(a)massol.net>
To: XWiki Users <users(a)xwiki.org>
Subject: [xwiki-users] What would you like to see in the XWiki 7.x
cycle?
Message-ID: <etPan.5481a267.62bbd95a.d55(a)Vincents-MacBook-Pro.local>
Content-Type: text/plain; charset="utf-8"
Dear XWiki users,
We?re getting close to the end of the XWiki 6.x cycle (6.4 is planned for the end of December) and in January we?ll start developing the XWiki 7.x cycle (which will last the whole 2015 year), starting with XWiki 7.0.
Thus it?s time for the XWiki devs to start defining the global roadmap for XWiki 7.x.
As XWiki users, I?d like to know if you have some needs for XWiki 7.x. What would you be interested in seeing in XWiki 7.x?
I?d like to start some proposal on the xwiki devs list (for the XWiki 7.x cycle) around end of December so it would be nice if you could shoot your suggestion ideas fast so that we can take them into account in the discussion! :)
Thanks a lot for your help and I hope you?re enjoying using XWiki!?
-Vincent Massol
XWiki Committer
------------------------------
Message: 2
Date: Fri, 5 Dec 2014 13:34:32 +0100
From: Daniel Lundh <dlundh(a)gmail.com>
To: XWiki Users <users(a)xwiki.org>
Subject: Re: [xwiki-users] What would you like to see in the XWiki 7.x
cycle?
Message-ID:
<CAJcM3q-w3=ohitUcPxtFGZiQWgsFqiteBDKEcA1=V8DLNGQ4Nw(a)mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hello.
New XWiki user here.
First, a big thanks, we are enjoying XWiki. :)
We have a fairly common use case, using the wiki for documenting servers and systems, trying to build an SKMS ala ITIL.
What i'd like to see is better formatting of text being cut & pasted from
(mainly) Word.
The single biggest issue I have heard complaints about is formatting.
We are moving away from a Lotus Domino environment and here too the formatting is mangled (this may have everything to do with Domino and nothing with XWiki however) when doing copy/paste.
I'd like tables to work like they do in Excel. When I press the tab key I want to move to the next field.
I want to be able to size the table with my mouse in real-time.
I want the columns to be plainly visible, not just the rows.
I want numbered lists to be a core feature.
Making text different colors and/or fonts should work like in a regular word processor, with a menu item in the WYSIWYG editor.
That's from the top of my head, anyway.
Have a great weekend.
Regards,
Daniel
On Fri, Dec 5, 2014 at 1:17 PM, vincent(a)massol.net <vincent(a)massol.net>
wrote:
> Dear XWiki users,
>
> We?re getting close to the end of the XWiki 6.x cycle (6.4 is planned
> for the end of December) and in January we?ll start developing the
> XWiki 7.x cycle (which will last the whole 2015 year), starting with XWiki 7.0.
>
> Thus it?s time for the XWiki devs to start defining the global roadmap
> for XWiki 7.x.
>
> As XWiki users, I?d like to know if you have some needs for XWiki 7.x.
> What would you be interested in seeing in XWiki 7.x?
>
> I?d like to start some proposal on the xwiki devs list (for the XWiki
> 7.x
> cycle) around end of December so it would be nice if you could shoot
> your suggestion ideas fast so that we can take them into account in
> the discussion! :)
>
> Thanks a lot for your help and I hope you?re enjoying using XWiki!
>
> -Vincent Massol
> XWiki Committer
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
--
Regards/Mvh
Daniel Lundh
------------------------------
Message: 3
Date: Fri, 5 Dec 2014 14:12:26 +0100
From: Adrien Moi <adrienmoi1988(a)hotmail.com>
To: "users(a)xwiki.org" <users(a)xwiki.org>
Subject: [xwiki-users] run document skript with admin rights
Message-ID: <DUB127-W2024960E044FCA9EBBB5BCB9790(a)phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"
Hello !
on one wiki page I have a skript to delete a comment on another page. But when a user that has no edit right tries to do it, it fails. Is there a way to go around this and let the user delete the comment as if he had edit rights?
for reference here is my simplified code
{{groovy}}
yourDocReference = new org.xwiki.model.reference.DocumentReference('xwiki','Main','WebHome');
yourDoc = xwiki.getDocument(yourDocReference);
comment = yourDoc.getComments();
if(comment.isEmpty()){
println("No Comment to remove!");}
else{
yourDoc.removeObject(comment[comment.size()-1]);
yourDoc.save();
println("First comment removed !")}
{{/groovy}}
thanks for the help
Adrien
------------------------------
Message: 4
Date: Fri, 5 Dec 2014 14:13:48 +0000 (UTC)
From: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
To: XWiki Users <users(a)xwiki.org>
Subject: Re: [xwiki-users] What would you like to see in the XWiki 7.x
cycle?
Message-ID:
<1774339120.6063392.1417788828917.JavaMail.yahoo(a)jws11111.mail.ir2.yahoo.com>
Content-Type: text/plain; charset=UTF-8
Hello,
You invited us Vincent, then here my proposals.
+10 to thanks Xwiki task force team (especially to support my
+harassment)
WYSIWYG based on FckEditor better to work on tables IMO
+1: "I want the columns to be plainly visible, not just the rows"
+especially when we edit a table
Add tab "Source" on WYSIWYG editor in Blog and FAQ
Add anchor lists on the page (a macros?) to add an link to an anchor #HAnchorTitle) and update anchor link when anchor target is renamed (difficult) & detect link with anchor when a page is renamed.
Use pure CSS for xwiki menu (without JS)
Last but not least: forbidden Vincent to awake devs at 2 hours in the morning on IRC xwiki chanel to chatting about an obscure xwiki code... ;-)
Thxs for all.
Pascal BASTIEN
De?: Daniel Lundh <dlundh(a)gmail.com>
??: XWiki Users <users(a)xwiki.org>
Envoy? le : Vendredi 5 d?cembre 2014 13h34
Objet?: Re: [xwiki-users] What would you like to see in the XWiki 7.x cycle?
Hello.
New XWiki user here.
First, a big thanks, we are enjoying XWiki. :)
We have a fairly common use case, using the wiki for documenting servers and systems, trying to build an SKMS ala ITIL.
What i'd like to see is better formatting of text being cut & pasted from
(mainly) Word.
The single biggest issue I have heard complaints about is formatting.
We are moving away from a Lotus Domino environment and here too the formatting is mangled (this may have everything to do with Domino and nothing with XWiki however) when doing copy/paste.
I'd like tables to work like they do in Excel. When I press the tab key I want to move to the next field.
I want to be able to size the table with my mouse in real-time.
I want the columns to be plainly visible, not just the rows.
I want numbered lists to be a core feature.
Making text different colors and/or fonts should work like in a regular word processor, with a menu item in the WYSIWYG editor.
That's from the top of my head, anyway.
Have a great weekend.
Regards,
Daniel
On Fri, Dec 5, 2014 at 1:17 PM, vincent(a)massol.net <vincent(a)massol.net>
wrote:
> Dear XWiki users,
>
> We?re getting close to the end of the XWiki 6.x cycle (6.4 is planned
> for the end of December) and in January we?ll start developing the
> XWiki 7.x cycle (which will last the whole 2015 year), starting with XWiki 7.0.
>
> Thus it?s time for the XWiki devs to start defining the global roadmap
> for XWiki 7.x.
>
> As XWiki users, I?d like to know if you have some needs for XWiki 7.x.
> What would you be interested in seeing in XWiki 7.x?
>
> I?d like to start some proposal on the xwiki devs list (for the XWiki
> 7.x
> cycle) around end of December so it would be nice if you could shoot
> your suggestion ideas fast so that we can take them into account in
> the discussion! :)
>
> Thanks a lot for your help and I hope you?re enjoying using XWiki!
>
> -Vincent Massol
> XWiki Committer
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
--
Regards/Mvh
Daniel Lundh
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
------------------------------
Message: 5
Date: Fri, 5 Dec 2014 15:24:26 +0000 (UTC)
From: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
To: XWiki Users <users(a)xwiki.org>
Subject: [xwiki-users] I can not use less variable in a SSX
Message-ID:
<762255178.6097150.1417793066878.JavaMail.yahoo(a)jws11112.mail.ir2.yahoo.com>
Content-Type: text/plain; charset=UTF-8
Hello,
In ./skins/flamingo/less/bootstrap/variables.less we found:
//== Media queries breakpoints
//
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
...
// Small screen / tablet
//** Deprecated `@screen-sm` as of v3.0.1 @screen-sm:????????????????? 768px; @screen-sm-min:????????????? @screen-sm;
Then I want use "screen-sm-min" in a new SSX object but this doesn't work:@media (min-width: @screen-sm-min) { ? h1 { ??? color: fuchsia; ?? }}(If I replace screen-sm-min with his value 768px, my SSX work well.) Is it normal than @screen-sm-min doesn't work in a SSX?Thxs Pascal B
------------------------------
Message: 6
Date: Fri, 5 Dec 2014 17:28:10 +0200
From: "Ecaterina Moraru (Valica)" <valicac(a)gmail.com>
To: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>, XWiki Users
<users(a)xwiki.org>
Subject: Re: [xwiki-users] I can not use less variable in a SSX
Message-ID:
<CAHQu0mbwyYioJgke-AWDzX2eZbKKPTFnk-Sby4Ud+y8ZomSj2A(a)mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hi,
http://jira.xwiki.org/browse/XWIKI-10708
Thanks,
Caty
On Fri, Dec 5, 2014 at 5:24 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
wrote:
> Hello,
> In ./skins/flamingo/less/bootstrap/variables.less we found:
> //== Media queries breakpoints
> //
> //## Define the breakpoints at which your layout will change, adapting
> to different screen sizes.
> ...
> // Small screen / tablet
> //** Deprecated `@screen-sm` as of v3.0.1
> @screen-sm: 768px;
> @screen-sm-min: @screen-sm;
>
> Then I want use "screen-sm-min" in a new SSX object but this doesn't
> work:@media (min-width: @screen-sm-min) {
> h1 {
> color: fuchsia;
> }}(If I replace screen-sm-min with his value 768px, my SSX work
> well.) Is it normal than @screen-sm-min doesn't work in a SSX?Thxs
> Pascal B
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
------------------------------
Message: 7
Date: Fri, 5 Dec 2014 17:28:10 +0200
From: "Ecaterina Moraru (Valica)" <valicac(a)gmail.com>
To: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>, XWiki Users
<users(a)xwiki.org>
Subject: Re: [xwiki-users] I can not use less variable in a SSX
Message-ID:
<CAHQu0mbwyYioJgke-AWDzX2eZbKKPTFnk-Sby4Ud+y8ZomSj2A(a)mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hi,
http://jira.xwiki.org/browse/XWIKI-10708
Thanks,
Caty
On Fri, Dec 5, 2014 at 5:24 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
wrote:
> Hello,
> In ./skins/flamingo/less/bootstrap/variables.less we found:
> //== Media queries breakpoints
> //
> //## Define the breakpoints at which your layout will change, adapting
> to different screen sizes.
> ...
> // Small screen / tablet
> //** Deprecated `@screen-sm` as of v3.0.1
> @screen-sm: 768px;
> @screen-sm-min: @screen-sm;
>
> Then I want use "screen-sm-min" in a new SSX object but this doesn't
> work:@media (min-width: @screen-sm-min) {
> h1 {
> color: fuchsia;
> }}(If I replace screen-sm-min with his value 768px, my SSX work
> well.) Is it normal than @screen-sm-min doesn't work in a SSX?Thxs
> Pascal B
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
------------------------------
Subject: Digest Footer
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
------------------------------
End of users Digest, Vol 89, Issue 7
************************************
Hello all,
is there documentation I can refer to that lists all the properties of "doc".
I find most of the stuff I need in HQL or Velocity or whatever are attributes of a document, but I'd like to see all possible attributes and their meaning somewhere if it exists.
Hello,
In the user profile page the functionnality of "Automatic document watching" field seem not working like documentation indicate?
Documentation http://extensions.xwiki.org/xwiki/bin/view/Extension/Watchlist+Application indicate:
"Each time a user create a document it's automatically added it the user watchlist"
But if I activate mail and "Automatic document watching: Major modifications" I receive mail if someone modify (major modif) a page who is already in my watchlist list.
This watchlist functionnality was modified?
Thxs for any help
Pascal BASTIEN
Hi,
I've got a few wiki pages that contain large tables (more columns than will fit across the page and more rows than will fit down the page), after being imported from a spreadsheet. I'd like to restrict the view of such tables to what can be shown in the visible area, with sliders to move around. Is there already a facility to do this, or a simple styling parameter?
Thanks,
Bryn
Our new manufacturing engineer is documenting all of the procedures in our
company. He has done this for several other companies and has work
instruction templates he uses (mostly Excel with a few Word documents). I am
to add these instructions to xWiki. I have tried several ways of importing
them into the wiki pages so they would look just like the original
documentation. All of my attempts have failed. The formatting just doesn't
seem to import correctly. There are two boxes that can be checked or
unchecked when importing the documents (Filter Styles and Use The Office
Document Viewer). I have tried every combination and none of them worked
correctly. I have included some screen shots of the documentation I am
trying to import. The idea is to only need to edit one document when future
changes arise rather than the document for the floor as well as the wiki
(with the exception of uploading the new file to the wiki).
Thanks for your help!
Capture_01.PNG
<http://xwiki.475771.n2.nabble.com/file/n7593308/Capture_01.PNG>
Capture_02.PNG
<http://xwiki.475771.n2.nabble.com/file/n7593308/Capture_02.PNG>
Capture_03.PNG
<http://xwiki.475771.n2.nabble.com/file/n7593308/Capture_03.PNG>
--
View this message in context: http://xwiki.475771.n2.nabble.com/Problem-using-Office-Document-Import-tp75…
Sent from the XWiki- Users mailing list archive at Nabble.com.
In order to debug your issue you should:
* open the browser's developer tools
* select the Network tab
* reload the page
* type something in the search input
* check the last requests send; they should target the
XWiki.SuggestSolrService page
* check the response output for each of these requests
The response output should be something like:
<?xml version="1.0" encoding="UTF-8"?>
<results>
... results here ...
</results>
Let me know what you have instead (simple user versus admin user).
On Sat, Nov 29, 2014 at 7:02 PM, Prasad Kamath
<prasad.kamath(a)accolite.com> wrote:
> Hi Marius ,
> Can you please provide me more inputs ? I am not able to fix
> the issue based on the link you have provided.
>
> Please see the screenshot of the issue I am referring to.
>
> Regards,
> Prasad
>
> On Wed, Nov 26, 2014 at 7:54 PM, Marius Dumitru Florea
> <mariusdumitru.florea(a)xwiki.com> wrote:
>>
>> I think you hit http://jira.xwiki.org/browse/XWIKI-9386 . Check who is
>> the last user that edited the search pages (Main.Search,
>> Main.SolrSearch). You can probably fix the problem by saving the
>> search pages with an user that has programming rights. But the
>> question remains: why were they saved by an user that doesn't have PR?
>>
>> Hope this helps,
>> Marius
>>
>> On Wed, Nov 26, 2014 at 9:59 AM, Prasad Kamath
>> <prasad.kamath(a)accolite.com> wrote:
>> > Hello , I am currently trying to setup Xwiki in my local machine and I
>> > am
>> > seeing that when I turn off admin role for un-registered and any other
>> > users that have been created , those users are unable to perform any
>> > search
>> > . Search works only when admin role is enabled for any user .
>> >
>> > Below are the details of my xwiki : xwiki-enterprise for windows Version
>> > :
>> > 6.3 .
>> >
>> > Can anyone tell me if this is an issue or if I am missing anything ?
>> > _______________________________________________
>> > users mailing list
>> > users(a)xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
Having been put off writing Java components a number of times I've decided to really tackle the problem head on. I would greatly appreciate any help in this.
I've been following the advice in http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents and I have compiled a Jar identical to the Hello World example except that the class and method names differ, hopefully consistently. I've placed the jar in XE_WAR_HOME/WEB-INF/lib and written a page, which consists only of
{{velocity}}
$services.mycomponent.greet()
{{/velocity}}
The output when viewed is simple "$services.alertdb.greet()", so nothing seems to have happened. However, if I restart Tomcat (and then wait a minute or so for XWiki to restart) the output is "Hello", as desired.
So is a restart of Tomcat always required? This wasn't mentioned in the guide. And since extensions can be added via the extension manager without a restart, is there a sneaky trick to doing the same with my own components.
Also, is a restart necessary when I update the Jar, either with fixed methods or modified interface?
I am a satisfied user XWiki, but I carried on porting XWiki nuodb (jdbc
driver exists). If you are a developer, Who is able to do this, please
contact me, I can be a sponsor of this small activity (some dollars up to $
100 for this small task).
After successfull work, the code changes will be published to public xwiki
repository for all other users (open source, it's have to request, not
private development).
Testing capacity I can deliver for testing portation, license of NuoDB is
free for developers (www.nuodb.com). Platform: native linux 64 (Centos)
If you are interested, please contact me.
PS: Some new features and changes of existing I have in long wishlist....
could be long term cooperation. Work off site, no on site needed (You
provide changes as source code package of xwiki, we test it in our
environment).
Petr Šimbera
psimbera(a)seznam.cz
(native czech language, Czech Republic), english is ok ...
What's the preferred way to deal with errors occuring in Java components? Is it OK to throw an exception from within the component, and can this be caught within the Velocity or Groovy code that calls it?
What's the right way to get the current user from the execution context within a Java component?
Taking the example from the guide (http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents) I thought it would be something like the following, which won't compile for me due to the getLocalUser symbol not being found.
import org.xwiki.context.Execution;
import org.xwiki.context.ExecutionContext;
...
@Inject
private Execution execution;
@Override
public String sayHello()
{
ExecutionContext context = execution.getContext();
String user = context.getLocalUser();
return "Hello " + user;
}
I note that in http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/or… the getLocalUser() method is deprecated in lieu of getUserReference() but I'd really rather deal with a String if at all possible.
Hi,
in our company we used the standalone version of XWiki for testing and are
very satisfied with it so we want to migrate to the new version and a more
robust setup.
The setup is Windows Server 2003 R2 (sadly only 32 bits) with Apache 2.4,
MySQL 5 and Tomcat 7.
XWiki 6.3 is setup now including a Wiki Template so I'd like to migrate the
data I exported as XAR from the 5.4.5 standalone instance.
My approach was exporting data from 5.4.5, creating the Wikis using the
template and importing the spaces and pages from the XAR export.
The issue I'm facing is Java heap size which constantly gets in my way. As
we're on a 32 bits system I can only assign ~1.2 GB of memory (the server
has 4GB).
This limitation makes it impossible to import the data into the new setup.
I tried general export/import via administration page and the various
options using the Admin Tools Application but on one of both ends I always
get the out of memory error.
- Using normal export/import: Export works but import throws the error
- Admin Tools - Export pages and spaces: Export works but import throws the
error
- Admin Tools - Large Export on Disk: the heap size error is thrown
Do you have any suggestions/hints on how I can migrate the spaces and pages
I have in the 5.4.5 setup to the 6.3 one?
Thanks in advance,
Dennis
On Mon, Nov 24, 2014 at 9:46 AM, Gerritjan Koekkoek
<gerritjankoekkoek(a)gmail.com> wrote:
Hi,
I'm trying to understand the new SOLR search (i did not understand the old
Lucene very well)
My use-case is the following.
We have a special FAQ application where the object has, amongst others, the
following attributes:
- Subject
- Topic-group
- Language
- Question
- Answer
he default search returns page-title/name, but this is in our case a
non-informational, generated by the system code. So instead of Page name we
would like to show: Subject
You have 3 options:
(1) Use Velocity to output the value of the subject property in the
FAQ title. See
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
Gerritjan: Thanks this is helpful but see below....
(2) I doesn't make sense to have a separate String property to store
the subject when you can store it in the document title.
The designer of our FAQ has opted to store multiple objects of same class
in one page. (because XWiki does not support "multiple locales
(language-country)" on a object level. So the title must pick the subject
name of the object of the current language-country combination. When we
just display the subject we do not need to solve this challenge.
(3) Customize the entire search page just to change the way the search
results are displayed
Yes I fear there is no way around this?
As facets we would like to show Topic-group and Language,
Default (on entering the page with search box) we would like to set the
context-language as a search filter... So when reader is reading french the
result only shows french FAQ (with a french subject title) if english only
english.
By checking and unchecking languages in the facets the user could extend or
reduce the search.
This is already the case with the default search. The context language
is checked by default in the locale facet. See
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
.
It looks the context language is only looking at language attribute of page.
We need to compare with attribute in object.
I think it would be useful if some explanation is how the object-based
facets can be defined.
A challenge is the topic field, this is a list with translation key. So if
user is french-language the list will show french topics, but if he/she
check english as well in facets things get complicated.
We have a business-rule that the english collection of FAQ's is the
baseline, and most comprehensive. The other languages are only translations
of the same. So another languages can not have a question not translated.
So my question is:
How to define the search
http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Applicatio…http://design.xwiki.org/xwiki/bin/view/Design/SolrSchemahttp://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Query+APIhttp://lucene.apache.org/solr/
How to modify the output so page-title is no longer showing
How to modify facets so only the two fields can be set
See
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
.This helps...
Hope this helps,
Marius
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
To folks who have the "Mocca Calendar"[1] application installed in their XWiki instances:
I have just released a new version 2.2.1 to which you might want to update to, as it contains quite a few bugfixes and improvements, thanks to patches send in by several contributors.[2]
However the new release does not show up when you try to update via the "Extension Updater" in your wiki admin; instead the latest version found there will be 2.1.9.
This happened due to a glitch when reorganizing the code which changed the Extension-Id for that application.
Instead please go to "Add extensions", search for "Mocca Calendar" and when the search result comes up, the extension manager should propose you to update to the correct version 2.2.1
Also while upgrading at least in my test instances I got a few spurious conflicts.
If you get them too, even while you have made no modifications to the "code" part of the calendar, please choose to keep the new version to get all updates installed property.
Best regards and sorry for the hiccup,
Clemens
[1] http://extensions.xwiki.org/xwiki/bin/view/Extension/MoccaCalendar
[2] http://jira.xwiki.org/browse/MOCCACAL-32?filter=13491
Many thanks, I'll give that a go.
________________________________________
From: Thomas Mortagne [thomas.mortagne(a)xwiki.com]
Sent: 27 November 2014 23:14
To: Bryn Jeffries
Subject: Re: [xwiki-users] Registering components
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
is a good up to date (we changed several time the mocking system to
use in XWiki by default, it's Mockito currently) example of how to
manipuated a mock of DocumentAccessBridge in a component oriented unit
test.
On Thu, Nov 27, 2014 at 11:42 AM, Bryn Jeffries
<bryn.jeffries(a)sydney.edu.au> wrote:
> Useful to know, thanks. Incidentally, are there any useful mocks, etc, for
> unit testing xwiki component code ( to avoid frequently restarting tomcat)?
> Like a mock execution context, for instance?
>
> Thanks,
>
> Bryn
>
>
>
> ----- Reply message -----
> From: "Thomas Mortagne" <thomas.mortagne(a)xwiki.com>
> To: "XWiki Users" <users(a)xwiki.org>
> Subject: Re: [xwiki-users] Registering components
> Date: Thu, Nov 27, 2014 18:38
>
> On Thu, Nov 27, 2014 at 8:36 AM, Thomas Mortagne
> <thomas.mortagne(a)xwiki.com> wrote:
>> What you have in XE_WAR_HOME/WEB-INF/lib is loaded by Tomcat at
>> startup, there is not much XWiki can do about it.
>>
>> But you can install your jar as an extension using Extension Manager
>> as long as it's on some supported repository (which mean a Maven
>> repository or XWiki repository, see
>>
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Repository+Application
>> for this last one) and you indicate your repository in
>> xwiki.properties.
>
> Note that Extension Manager is not the best fit right now to test
> snapshot jars since it does not have the required special handling of
> SNAPSHOT needed to update to a new version of the same SNAPSHOT
> version.
>
>>
>> On Thu, Nov 27, 2014 at 5:20 AM, Bryn Jeffries
>> <bryn.jeffries(a)sydney.edu.au> wrote:
>>> Having been put off writing Java components a number of times I've
>>> decided to really tackle the problem head on. I would greatly appreciate any
>>> help in this.
>>>
>>> I've been following the advice in
>>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents and I
>>> have compiled a Jar identical to the Hello World example except that the
>>> class and method names differ, hopefully consistently. I've placed the jar
>>> in XE_WAR_HOME/WEB-INF/lib and written a page, which consists only of
>>> {{velocity}}
>>> $services.mycomponent.greet()
>>> {{/velocity}}
>>>
>>> The output when viewed is simple "$services.alertdb.greet()", so nothing
>>> seems to have happened. However, if I restart Tomcat (and then wait a minute
>>> or so for XWiki to restart) the output is "Hello", as desired.
>>>
>>> So is a restart of Tomcat always required? This wasn't mentioned in the
>>> guide. And since extensions can be added via the extension manager without a
>>> restart, is there a sneaky trick to doing the same with my own components.
>>>
>>> Also, is a restart necessary when I update the Jar, either with fixed
>>> methods or modified interface?
>>> _______________________________________________
>>> users mailing list
>>> users(a)xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>
>
>
> --
> Thomas Mortagne
>
--
Thomas Mortagne
Hi,
We are looking for the best way to access an external SQL database
using velocity exclusively (because we can't write a macro using
groovy language).
So, we installed and tried to use this plugin :
http://extensions.xwiki.org/xwiki/bin/view/Extension/SQL+Plugin. The
plugin is properly installed. Now we are unsure how to use it : there
is no mention of the user which is used to connect to the database, do
we have to to configure a JNDI ? How ?
As a side question, what is you guys your preferred method to program
xwiki pages with external database access ?
Thanks
--
Martin
Hi,
I imported several .xar files from another xwiki instance and afterwards
wanted to delete the uploaded .xar files.
All but one have successfully been deleted.
Everytime I delete "Xwiki_New.xar" from the import screen inside the
administration screen and refresh the page it's there again.
Also in document index I still see it in the attachments tab and not in the
deleted attachments tab.
Any hints?
Is it safe to simply delete it from xwikiattachment table in the database
with phpMyAdmin?
My system is Windows Server 2003 R2 with Apache 2.4, MySQL 5, Tomcat 7,
XWiki 6.3.
Thanks in advance,
Dennis
Hi,
I'm trying to understand the new SOLR search (i did not understand the old
Lucene very well)
My use-case is the following.
We have a special FAQ application where the object has, amongst others, the
following attributes:
- Subject
- Topic-group
- Language
- Question
- Answer
he default search returns page-title/name, but this is in our case a
non-informational, generated by the system code. So instead of Page name we
would like to show: Subject
As facets we would like to show Topic-group and Language,
Default (on entering the page with search box) we would like to set the
context-language as a search filter... So when reader is reading french the
result only shows french FAQ (with a french subject title) if english only
english.
By checking and unchecking languages in the facets the user could extend or
reduce the search.
A challenge is the topic field, this is a list with translation key. So if
user is french-language the list will show french topics, but if he/she
check english as well in facets things get complicated.
We have a business-rule that the english collection of FAQ's is the
baseline, and most comprehensive. The other languages are only translations
of the same. So another languages can not have a question not translated.
So my question is:
How to define the search
How to modify the output so page-title is no longer showing
How to modify facets so only the two fields can be set
Hello
In a groovy macro I can access the comments on the page like this :
comments = doc.getComments();
now I want to delete the last one... how can I do that?
I tried :
comments[0].delete();
but it doesn't work....
do you know what to type to make it work?
Thanks a lot
Adrien
Hi,
is there a way to make the search function on the main wiki also search
inside subwikis?
Couldn't find something in the documentation.
Thanks in advance,
Dennis
Hi all,
I set up a subwiki where the content is restricted to registered users.
Only global users (authenticated via LDAP from the main wiki) are allowed.
I also set up a color theme and logo.
Now when the subwiki is accessed you are automatically redirected to the
login page but there the default xwiki theme and logo is used instead of my
own.
I have to change the permissions for XWiki/DefaultSkin and allow
unregistered users and XWikiAllGroup to make the login page respect my
theme settings.
Is this by design or should I create a Jira bug report?
BR,
Dennis
I have an instance of XWiki Enterprise 6.3 running with no access for unregistered users. I am adding content as a user with membership to XwikiAdminGroup, which has admin and program rights across the wiki.
I wanted to add a Groovy component by creating a new page and then editing the object properties, but the "Edit" button does not have a list of edit options - I can only click it to edit in the default view (currently set to WYSIWYG). I can change to the object editor by explicitly changing the URL to add the GET parameters "?editor=object".
If I log in as Admin I get the usual "Edit" button, that includes the various edit modes including "Objects".
Any suggestions for how I can get the same options as another user? I don't recall having this problem in previous versions of XWiki.
Je serai absent(e) à partir du 27/11/2014 de retour le 01/12/2014.
je suis en formation.
Je répondrai à vos messages dès mon retour.
En cas de problème technique, veuillez contacter SYNOX au 05 67 34 66 56.
Merci
I want to use the Social Login extension to allow users to log in with their
Google credentials.
I have a couple of questions about generating OAuth key/secret pairs from
the Google Developer Console
1. What API should I use for login only? Google recommends the Google+ API.
Will that work?
2. I need to provide an "authorized redirect URI". Should I set it to the
main page of the wiki? Or is there a specific page in XWiki that handles
Oauth callbacks?
3. What should I set as the "authorized javascript origin"?
Any help here would be much appreciated.
Thanks,
J
--
View this message in context: http://xwiki.475771.n2.nabble.com/Configuring-Social-Login-Extension-for-Go…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello !
I got a pretty long code for one of my page and I get this error :
Caused by: javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during class generation: Method code too large!
Is there any way to change the xwiki settings to avoid this error?
thank you very much in advance for your help !
Adrien
Hi all,
I have a strange issue on XWiki 6.3 (Windows Server 2003 R2, Apache 2.4,
MySQL 5, Tomcat 7).
On a subwiki main page I added the include macro to display the contents of
a page on the main wiki (an info box that should appear on all subwikis).
The macro works logged in as the admin user but normal users (authenticated
from LDAP) get a permission issue:
"Current user [xwiki:XWiki.USERNAME] doesn't have view rights on document
[XWiki:Main.Info in allen Wikis]"
I have the same include macro on the main wiki main page and there it works
for all users. The user can also access the page referenced in the macro.
Only on the subwiki it doesn't work.
Permissions are set correctly though and everything else works.
Hope someone can lead me in the right direction.
Thanks in advance,
Dennis
Hello , I am currently trying to setup Xwiki in my local machine and I am
seeing that when I turn off admin role for un-registered and any other
users that have been created , those users are unable to perform any search
. Search works only when admin role is enabled for any user .
Below are the details of my xwiki : xwiki-enterprise for windows Version :
6.3 .
Can anyone tell me if this is an issue or if I am missing anything ?
Hi,
since creating an own color skin the space FlamingoThemes is shown on the
wiki main page in the spaces section.
I don't want users to see it because they will get confused.
How can I hide this space? Setting permissions to admins only -of course-
destroys the page layout for normal users.
Kind regards,
Dennis
Hello
I'm using the "include macro" to transfer some information between the different documents of my xwiki, but somehow I can't transfer any class. When I try this code :
First page :
{{groovy}}
xy=2;
public class Souris {
public String Name;
public Souris(){
Name="Jerry";
}
}
Souris Verte = new Souris();
{{/groovy}}
Second page :
{{include reference="First page"/}}
{{groovy}}
println(xy);
{{/groovy}}
{{groovy}}
println(Verte.Name)
{{/groovy}}
the first groovy macro runs well and displays
2
as predicted, but the second one doesn't work. Why ? And how can I make it work?
Thanks for the advice !
Adrien
Hi,
I have seen that the jobManager is deprecated since 6.1.
But how would I schedule a job and return immediately using the jobExecutor?
(Using the jobManager it would be something like :
Job job = jobManager.addJob("jobtype", request))
Thanks , Stefan.
Hello,
I migrated from V5.4.4 to 6.3 and my plugin "style" in WYSIWYG is not working.
Where do i write the css ? with colibri it was in colibri.css but with flamingo i didn't found a flamingo.css and i don't know anything about less files...
thank you.
----------------------------------------------------
Charline FERRO
Bureau 101 - Pôle des Systèmes d'Information et des Usages du Numérique (PSIUN)
Universite de Bourgogne
1 Esplanade Erasme
BP 27877
21078 DIJON CEDEX
Tél : 03 80 39 52 55
Mail : charline.ferro(a)u-bourgogne.fr
----------------------------------------------------
Hello everyone,
I recently tried to insert french language characters (é, è, à) in xwiki.atc.ch for:
1. Validation Email content
2. Confirmation Email content
(under Home>Administer Wiki>Users and Groups>Registration)
but when we register, we get the above mentioned characters as "?" in the email. I changed encoding to UTF-8 for xwiki encoding and html encoding (as per http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding) and reloaded tomcat6 and apache, but it still displays "?" characters in the email received.
Anyone have an idea of how to proceed please?
*also, I found http://lists.xwiki.org/pipermail/users/2007-March/002944.html - saying to change mysql encoding (which I didn't perform till now), is it recommended? (other apps/websites are running on the same server)
Thanking you in advance,
Regards,
Mike Migale
Mike Migale
Solero
Royal Road, Moka 80829
T: +230 650 8880
E: info(a)solero.mu
Hello,
I have little question : I would like to define a class in a groovy macro in a document, create an instances of this class on another document and then access this instance on the first document. Is that possible to do?
It would kinda look like this:
First doc (Doc1):
{{groovy}}
public class Hello{
public printHello(){
println("HelloWorld!")
}
}
Hello A = //get instance "FirstTest" of Hello from the doc2
A.printHello();
{{/groovy}}
second doc (Doc2):
{{groovy}}
//import class definition from Doc1
Hello FirstTest = new Hello();
{{/groovy}}
then the first document would output "HelloWorld! "
Is that doable in any way??
Thanks in advance
Adrien
I'm in the process of transferring a reasonable number of "Tip of the Day" articles that we've previously distributed by email to store on the Wiki. Ideally, I'd like to display them in a Documents list using the Dashboard macro and Documents gadget and have the date that they were first published as one of the columns in the document list. Note that the publication date should reflect the date that the tip was first sent out as an email, not the date that I'm now transferring the text to the Wiki, which is today (ie. November, 2014). Some of these articles go back as far as September, 2011. I think I'd also like to avoid messing with the revision history dates on these articles. I think the publication date should be a field independent of the needs of the Wiki and it's revision tracking mechanisms, even if there is a supported way of fiddling with such things.
I've been able to associate a CreationDate property with each article via the following process:
1. Create a Hidden "Tip of the Day" page.
2. Edit the class of the "Tip of the Day" page and add a Date property called CreationDate.
3. On each Tip of the Day article, edit the objects, add a "Tip of the Day" object and store the creation date in the CreationDate property on that object.
What I can't seem to figure out is if I can display this as a column in the Documents gadget of a dashboard and if so how. The Documents gadget does have a columns property which takes a comma-separated list of column specifications such as doc.name, doc.date, doc.author and the like. Is there are way to specify the CreationDate on the attached Tip of the Day object as a column in this list?
Alternatively, is there a better way to go about this?
Brett Gersekowski
Senior Solution Architect
WIND Mobile 207 Queen's Quay West, Suite 710 Toronto, ON M5J 1A7
Email: BGersekowski(a)WINDMobile.ca
Direct: 647-260-1415
www.windmobile.cawww.facebook.com/WINDmobilewww.twitter.com/WINDmobilewww.linkedin.com/company/wind-mobile
THAT'S THE POWER OF WIND
Hello XWiki community members,
Do you have an issue that is very important to you, but nobody seems to
notice even if you`ve reported it a while ago?
About a month ago we have included in our issue tracker (
http://jira.xwiki.org ) the ability to sponsor an issue. Have you seen that
green link on the right side (
http://dev.xwiki.org/xwiki/bin/download/Community/Contributing/sponsorIssue…
), that`s it! :)
We did not get much of a reaction until now, so I should maybe try to
present it properly to the community and see what people think; if it's a
good idea or not; if it`s going to work out or if we should dump it.
The idea is simple and is described in our Contributing page (
http://dev.xwiki.org/xwiki/bin/view/Community/Contributing#HSponsoringissues
).
Basically, you see an issue that you really want someone to fix and you
offer yourself to sponsor it, in the hopes of motivating people to
prioritize your issue above all others. Other people may join in and
increase the sponsored amount any time, so the chances of the issue to be
fixed will grow accordingly. You do this by clicking the green "Sponsor"
link on the right side of the issue, getting redirected to the
FreedomSponsors.org website, fill in the details and wait for the magic to
happen.
At this point, any member of the community with developer skills can see
your issue above others and have a go at it. When he is done and you are
happy with the work, you can reward him with the promised amount.
More details on the technicalities can be found on their FAQ (
https://freedomsponsors.org/faq ).
Among the advantages, I can list:
- Prioritize your issue above others
- Reward people for their time spent on helping you out with your needs
- A way to sponsor open source hard work done on the XWiki project
Let us know what you think about this initiative.
Thanks,
Eduard
I'd like to upload files through a custom File Upload servlet that runs from the same Tomcat server but is not part of XWiki. This servlet does some file processing and stores the file in a separate area away from the XWiki attachments, and it's possible that eventually this servlet might be moved to another server as processing demands change.
Is it possible to make use of the supplied XWiki UI widgets to upload to this servlet? Any guidance on how to do this would be greatly appreciated.
Hi,
I wanted to use the snip from page
http://extensions.xwiki.org/xwiki/bin/view/Extension/Job+Module
....
Request jobRequest = new DefaultRequest();
// Indicate an id to allow you to access the status of this
unique task, the id is required to save/retrieve the status of
the job
jobRequest.setId("taskid");
// Allow the job to ask questions during its executing (false by
default)
jobRequest.setInteractive(true);
// [since 5.4] Indicate if the job should log informations about
what is going on (to display it during the process for example,
true by default)
jobRequest.setVerbose(true);
// Put some custom configuration
jobRequest.setProperty("some custom jobtype related parameter",
"value");
// Lookup and execute Job with role hint "jobtype" and wait for
it to be finished
jobManager.executeJob("jobtype", request)
// Lookup and add Job with role hint "jobtype" to the queue
queue and return right away
Job job = jobManager.addJob("jobtype", request)
// Wait until the job is finished
job.join()
..
to be able to create my own job and job request. But how is the
jobManager injected? When I use the snip, the
the jobManager is null.
Hi everybody!!!
Please, allow me some small talk... I'm really happy to be here again once I've managed to get and start enjoying a brand new 6.2.4. XWiki installation!
Only a detail: after following the evolution of the 6.x branch and having installed the new 6.2.4 release, a string seems to keep lacking affecting the renderization of Blog.WebHome.
Here it is what I see not only here, but in a number of installations around the net...
http://atriumkm.idisantiago.es/bin/download/ICT/Images/blogLocalizationMiss…
I guess you get the same result by accessing directly this site...
http://idis1.idisantiago.es:8080/xwiki/bin/view/Blog/
Please, even though it is kind of a trivial problem not affecting, shouldn't it be fixed?
Thanks!
Ricardo
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
________________________________
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada.
See more languages: http://www.sergas.es/aviso_confidencialidad.htm
I am struggling with a page permissions issue. What am I doing wrong here?
I have done this before, but it doesn't seem to be working this time.
I have a SPACE that is only available to a specific GROUP. That seems to be working just fine.
I have a PAGE in that SPACE that I only want a specific USER (in the GROUP) to be able to access.
I set the permissions for the GROUP to deny on that PAGE and explicitly gave the USER permission.
The issue is that anyone in the GROUP can still ACCESS the PAGE.
Am I missing something?
Paul Pinkerton
KnowledgeNow Project Lead
Thanks. I'd looked at the DevGuide document before and been none the wiser, but it's just dawned on me that the example code is JavaScript (I'd assumed Groovy or Velocity), so XWiki.File Upload must be a JS library function. Sometimes it's hard to know what things are XWiki magic and what's basic website programming.
Thanks for the single origin link. Looks like I can set the origin to the common suffix of my two servers.
----- Reply message -----
From: "Marius Dumitru Florea" <mariusdumitru.florea(a)xwiki.com>
To: "XWiki Users" <users(a)xwiki.org>
Subject: Re: [xwiki-users] Using HTML5 File Upload Widget for non-XWiki files
Date: Thu, Nov 13, 2014 20:56
See http://platform.xwiki.org/xwiki/bin/view/DevGuide/HTML5Upload for
how to use the file upload widget inside XWiki. Note that if you want
to submit the file to a different server you will hit the
https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy
problem. Also note that the file upload widget uses the native File
Upload API provided by the browser. Read more about it here
https://developer.mozilla.org/en-US/docs/Using_files_from_web_applications
.
Hope this helps,
Marius
On Wed, Nov 12, 2014 at 10:28 PM, Bryn Jeffries
<bryn.jeffries(a)sydney.edu.au> wrote:
> I'd like to upload files through a custom File Upload servlet that runs from the same Tomcat server but is not part of XWiki. This servlet does some file processing and stores the file in a separate area away from the XWiki attachments, and it's possible that eventually this servlet might be moved to another server as processing demands change.
>
> Is it possible to make use of the supplied XWiki UI widgets to upload to this servlet? Any guidance on how to do this would be greatly appreciated.
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
Hi.
I've the following configuration:
* XWIki Enterprise 5.4.5 with path-based subwikis
* Main wiki using LDAP (AD) authentication
* Subwiki with "both local and global users"
I'm trying do configure it so, that Global users will be authenticated
by AD (possibly with some AD-to-Wiki group mappings) and Local users
will be authenticated against xwiki database.
It's almost working. If the Global user is logged in to the main wiki
and then goes to the subwiki - he/she can use it as Global user (which
can be checked looking at the 'profile' or 'preferences' urls included
in the heading bar).
But if the user without prior logging to the main wiki goes straight to
subwiki and enters his AD credentials - a new Local user is being created.
Is there a way to prevent the Local user creation? I suppose, that
changing xwiki.authentication.ldap.trylocal to '0' in xwiki.cfg is not
the solution - I'll lose the ability to have local users in subwiki, right?
In the main wiki it is desire'able, it allows easy joining for each AD
user.
TIA,
R.
Hi,
I created a Macro in xwiki.
In this macro a server process is started that tries to read attachments.
For this, I created a XWikiCOntext to access the Wiki.
This is the code:
XWikiStubContextProvider
prov=Utils.getComponent(XWikiStubContextProvider.class);
prov.initialize(template);
XWikiContext con=prov.createStubContext();
con.setUser("XWiki.TestProcess", true);
con.setVirtual(true);
Unfortunately it is not possible to access the attachment content using
this context.
The following error is thrown:
com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while
loading attachment myseedfile.dgn of document
microtest_oto.Templates_Test-Stefan
at
com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:233)
at
com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:4600)
at
com.xpn.xwiki.doc.XWikiAttachment.getContentInputStream(XWikiAttachment.java:576)
at
org.centauron.xwiki.help.XWikiAttachmentCopy.doCommand(XWikiAttachmentCopy.java:79)
....
Any help would be appreciated.
Regards, Stefan.
Hi All,
We are currently using the 0.9.840 version of Xwiki. We are planning to
upgrade the wiki to the latest version so as to include all the new
features provided by xwiki.
I searched almost everywhere for a good resource for upgrading the wiki,
but in vain.
Can someone guide me on this to accomplish this task?
This is a very significant step in expanding our business with the xwiki
team.
Thanks,
Kashyap.
The XWiki development team is proud to announce the availability of XWiki
6.3.
This release provides a great stabilization of the Flamingo Skin, and
includes new themes and some improvements to manage them.
It also contains a new mail API and module to replace the old mailsender
plugin, a new dynamic tree widget that is progressively replacing all
existing trees in XWiki (Document Index, Navigation Panels, etc...), some
improvements on the Extension Manager as well as on the User Directory and
the Applications Panel.
Efforts have been made on the performances side, with good results on view
mode (except on the first loaded-page). We reach the same performances as
5.4.6, which was not the case during the 6.x cycle until now. This is a
first milestone to get even better!
Finally, and like every releases, a lot of bugs have been fixed.
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/ReleaseNotesXWiki63
Thanks
-The XWiki dev team
Hello all,
I have a list on a page which defaults to a value defined in the objects of the page. What I want to do is access the value of the list after the page is refreshed from velocity code on the same page. My users would open the page and see the lists with their default values, then select some values from the list and press a button causing a post-back. After the post-back happens, I need to essentially "reflect" the selection that the user made from velocity code.
So far if I use the following code:
#set($obj = $doc.getObject("myspace.myclass",0))
$doc.display("myprop","view",$obj)
But, I get the default value after the page posts back, even though the selected value persists.
Any help is greatly appreciated.
Hello
I have a little question and I couldn't find an answer on the internet...
In a groovy part, I can create list the attachments of the current document with this :
{{groovy}}
list = doc.getAttachmentList();
print(list);
{{/groovy}}
how can I access the documents of another page in the same way?
On a different page of the wiki I tried
{{groovy}}
list = XWiki.WebHome.getAttachmentList();
print(list);
{{/groovy}}
to get a list of the attachments on XWiki.WebHome, but it didn't work...
Do you have any clue?
Thank you very much !
Adrien
Hey everyone!
I am looking to place page breaks in specific locations within the content
on a page.
The content in the wiki pages is instructions on how to operate various
machines on our manufacturing floor.
The most common export used to print these instructions id PDF.
Many times a single step will be printed on two different pages.
I am tasked with eliminating this.
I have found a post about page breaks from 2009.
*(% style="page-break-before:always" %)*
It was mentioned that this was considered an advanced feature and was seldom
used.
It was also mentioned that there might be added support to enter parameters,
such as CSS) and the WYSIWYG in XE 1.9.
I was hoping someone might be able help me on this or maybe even direct me
to more information about using page breaks in the xwiki.
Thanks!
--