I am out of the office from Thu 28/06/2012 until Mon 30/07/2012.
I will only check email occasionally during this time. For urgent matters
please contact David Poole (dpoole(a)cirrustech.com.au) or Guang Liu
(gliu(a)cirrustech.com.au) at Cirrus Technologies (02) 92993544.
Regards,
Neville
Note: This is an automated response to your message "users Digest, Vol 59,
Issue 37" sent on 28/6/2012 2:46:44.
This is the only notification you will receive while this person is away.
Hello everybody,
I use a WYSIWYG editor for a TextArea field. When I want to write
indented bulleted list like that :
° Item
°° Item
°° Item
° Item
°° Item
°° Item
I get this text in view mode :
° Item
Item (bold)
°°Item
° Item
Item (bold)
°°Item
I think that the text is interpreted like that :
* Item
** Item ** ...
That's why my first sub-item is bold.
Can anyone help me ?
Thanks
M. Canzerini
Dear Users,
I have a problem with Xwiki's XMLRPC api. I'm using XWiki 4.0 and I
want to add my own methods. I've read here
http://www.mail-archive.com/users@xwiki.org/msg08285.html that I can
implement them in XWikiXmlRpcApi and XWikiXmlRpcApiImpl. I've found
the interface here:
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
But I couldn't find its implementation. After some googling I
discovered it here:
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/xmlrpc/XWikiXmlRpcApiImpl.java
and here is the source:
http://permalink.gmane.org/gmane.comp.web.wiki.xwiki.scm/127394
I presume that the implementation is deprecated (it's in "oldcore"
folder). My question is: is this interface also deprecated? How do I
add a method to Xwiki's XMLRPC?
--
Regards
Patricia Sz.
Hello,
i did put all /Lib content of jython-standalone.jar inside a new jython-lib.jar, removing the Lib/ part. And it worked.
----- Mail original -----
De: "Thomas Mortagne" <thomas.mortagne(a)xwiki.com>
À: "XWiki Users" <users(a)xwiki.org>
Envoyé: Mercredi 27 Juin 2012 19:19:08
Objet: Re: [xwiki-users] problem running the code macro
On Wed, Jun 27, 2012 at 6:43 PM, David Delbecq <david.delbecq(a)meteo.be> wrote:
> Hello,
>
> i have troubles with the {code} macro. It's not working with xwiki 4.1. It's ok in the jetty bundle, but has problem running under jboss AS 7.
> Config: xwiki 4.1, jboss AS 7, windows
>
> Please also note that we also have this problem (exact same message) with xwiki 2.4 on jboss 4.1 on linux. I hoped that this problem would have been solve since a few year, but i notice code macro is still broken :(
> What is the definitive solution to this jython problems? Do i have to fill a jira issue for this?
That would be a start yes since it does not seems to be reported. The
code macro is working well in many application servers so it's not
like it was not working at all, to fix it we need to know how to
first.
>From what I can see from the error, Jython is unable to find the
python libraries located in its own jar when on Jboss for some reason.
You might try the following:
* duplicate the jython-standalone jar (lets call them jython.jar and
jython-lib.jar)
* in jython jar: remove the /Lib folder
* in jything-lib jar:
** remove everything but the /Lib folder (you may need to keep the
META-INF folder too to keep the jar valid for JBoss)
** move all the content of /Lib folder on the root of the jar
** remove the now empty /Lib folder
It's seems to find properly the Pygments files which is packaged that
way, if it's working for you we may try to build a custom package of
Jython for XWiki.
>
>
> org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content
> at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:115)
> at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:51)
> at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:141)
> at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:53)
> at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:190)
> at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:135)
> at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:83)
> at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:248)
> at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124)
> at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54)
> at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80)
> at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38)
> at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:111)
> at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
> at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67)
> at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41)
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:901)
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:880)
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:911)
> at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:582)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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.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.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:224)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)
> at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105)
> at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1800)
> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1740)
> at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:854)
> at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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.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:224)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)
> at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105)
> at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1800)
> at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:155)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:241)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
> at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
> at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
> at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
> at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
> at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
> at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.rendering.internal.parser.pygments.PygmentsParser] identifier by [role = [interface org.xwiki.rendering.parser.HighlightParser] hint = [default]]
> at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:316)
> at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:149)
> at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
> at org.xwiki.rendering.internal.macro.code.CodeMacro.highlight(CodeMacro.java:147)
> at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:112)
> ... 101 more
> Caused by: Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "__pyclasspath__/pygments/__init__.py", line 37, in <module>
> File "__pyclasspath__/pygments/util.py", line 12, in <module>
> ImportError: No module named re
>
> at org.python.core.Py.ImportError(Py.java:290)
> at org.python.core.imp.import_first(imp.java:750)
> at org.python.core.imp.import_name(imp.java:834)
> at org.python.core.imp.importName(imp.java:884)
> at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
> at org.python.core.PyObject.__call__(PyObject.java:357)
> at org.python.core.__builtin__.__import__(__builtin__.java:1173)
> at org.python.core.imp.importOne(imp.java:903)
> at pygments.util$py.f$0(__pyclasspath__/pygments/util.py:232)
> at pygments.util$py.call_function(__pyclasspath__/pygments/util.py)
> at org.python.core.PyTableCode.call(PyTableCode.java:165)
> at org.python.core.PyCode.call(PyCode.java:18)
> at org.python.core.imp.createFromCode(imp.java:386)
> at org.python.core.util.importer.importer_load_module(importer.java:109)
> at org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63)
> at org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown Source)
> at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
> at org.python.core.imp.loadFromLoader(imp.java:513)
> at org.python.core.imp.find_module(imp.java:467)
> at org.python.core.PyModule.impAttr(PyModule.java:100)
> at org.python.core.imp.import_next(imp.java:715)
> at org.python.core.imp.import_logic(imp.java:777)
> at org.python.core.imp.import_name(imp.java:839)
> at org.python.core.imp.importName(imp.java:884)
> at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
> at org.python.core.PyObject.__call__(PyObject.java:357)
> at org.python.core.__builtin__.__import__(__builtin__.java:1173)
> at org.python.core.imp.importFromAs(imp.java:978)
> at org.python.core.imp.importFrom(imp.java:954)
> at pygments$py.f$0(__pyclasspath__/pygments/__init__.py:91)
> at pygments$py.call_function(__pyclasspath__/pygments/__init__.py)
> at org.python.core.PyTableCode.call(PyTableCode.java:165)
> at org.python.core.PyCode.call(PyCode.java:18)
> at org.python.core.imp.createFromCode(imp.java:386)
> at org.python.core.util.importer.importer_load_module(importer.java:109)
> at org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63)
> at org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown Source)
> at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
> at org.python.core.imp.loadFromLoader(imp.java:513)
> at org.python.core.imp.find_module(imp.java:467)
> at org.python.core.imp.import_next(imp.java:713)
> at org.python.core.imp.import_name(imp.java:824)
> at org.python.core.imp.importName(imp.java:884)
> at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
> at org.python.core.PyObject.__call__(PyObject.java:357)
> at org.python.core.__builtin__.__import__(__builtin__.java:1173)
> at org.python.core.imp.importOne(imp.java:903)
> at org.python.pycode._pyx0.f$0(<string>:6)
> at org.python.pycode._pyx0.call_function(<string>)
> at org.python.core.PyTableCode.call(PyTableCode.java:165)
> at org.python.core.PyCode.call(PyCode.java:18)
> at org.python.core.Py.runCode(Py.java:1261)
> at org.python.core.Py.exec(Py.java:1305)
> at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206)
> at org.xwiki.rendering.internal.parser.pygments.PygmentsParser.initialize(PygmentsParser.java:165)
> at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
> at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:291)
> at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
> at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:314)
> ... 105 more
>
>
> David Delbecq
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hello,
i have troubles with the {code} macro. It's not working with xwiki 4.1. It's ok in the jetty bundle, but has problem running under jboss AS 7.
Config: xwiki 4.1, jboss AS 7, windows
Please also note that we also have this problem (exact same message) with xwiki 2.4 on jboss 4.1 on linux. I hoped that this problem would have been solve since a few year, but i notice code macro is still broken :(
What is the definitive solution to this jython problems? Do i have to fill a jira issue for this?
org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content
at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:115)
at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:51)
at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:141)
at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:53)
at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:190)
at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:135)
at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:83)
at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:248)
at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124)
at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54)
at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80)
at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38)
at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:111)
at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67)
at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:901)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:880)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:911)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:582)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.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.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:224)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1800)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1740)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:854)
at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.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:224)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1800)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:155)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:241)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.rendering.internal.parser.pygments.PygmentsParser] identifier by [role = [interface org.xwiki.rendering.parser.HighlightParser] hint = [default]]
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:316)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:149)
at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
at org.xwiki.rendering.internal.macro.code.CodeMacro.highlight(CodeMacro.java:147)
at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:112)
... 101 more
Caused by: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "__pyclasspath__/pygments/__init__.py", line 37, in <module>
File "__pyclasspath__/pygments/util.py", line 12, in <module>
ImportError: No module named re
at org.python.core.Py.ImportError(Py.java:290)
at org.python.core.imp.import_first(imp.java:750)
at org.python.core.imp.import_name(imp.java:834)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importOne(imp.java:903)
at pygments.util$py.f$0(__pyclasspath__/pygments/util.py:232)
at pygments.util$py.call_function(__pyclasspath__/pygments/util.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:386)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63)
at org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown Source)
at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:513)
at org.python.core.imp.find_module(imp.java:467)
at org.python.core.PyModule.impAttr(PyModule.java:100)
at org.python.core.imp.import_next(imp.java:715)
at org.python.core.imp.import_logic(imp.java:777)
at org.python.core.imp.import_name(imp.java:839)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
at pygments$py.f$0(__pyclasspath__/pygments/__init__.py:91)
at pygments$py.call_function(__pyclasspath__/pygments/__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:386)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63)
at org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown Source)
at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:513)
at org.python.core.imp.find_module(imp.java:467)
at org.python.core.imp.import_next(imp.java:713)
at org.python.core.imp.import_name(imp.java:824)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importOne(imp.java:903)
at org.python.pycode._pyx0.f$0(<string>:6)
at org.python.pycode._pyx0.call_function(<string>)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1261)
at org.python.core.Py.exec(Py.java:1305)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206)
at org.xwiki.rendering.internal.parser.pygments.PygmentsParser.initialize(PygmentsParser.java:165)
at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:291)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:314)
... 105 more
David Delbecq
Hi,
I try to install the release 4.1.2 on 3.4.
During the database migration, there is this error message :
2012/06/27 13:26:54 [http://172.24.1.135:8080/xem/bin/view/Main/] INFO
c.x.x.s.m.h.R40000XWIKI6990DataMigration - [R40000XWIKI6990] -
Converting 12568 document statistics IDs in 1 tables and 0 collection
tables...
2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] WARN
o.h.util.JDBCExceptionReporter - SQL Error: 1062, SQLState: 23000
2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR
o.h.util.JDBCExceptionReporter - Duplicate entry '-5487128615380216001'
for key 1
2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] INFO
c.x.x.s.m.h.HibernateDataMigrationManager - Failed to migrate database
[xwiki]...
com.xpn.xwiki.store.migration.DataMigrationException: Data migration
R40000XWIKI6990 failed
Somebody could help me about this message ?
Even in debug mode, I don't have any information about this duplicate
entry (which table ? which column ?)
Thank you for any help.
Nicolas
Hi,
I got a personal request from Vincent Massol wanting me to update
everyone on the status of my documentation project for installing
Xwiki on non-mainstream systems - by that I mean Linux.
In writing the documents I had 3, for installing on FreeBSD w/Tomcat,
Solaris w/Gassfish, and a migration guide.
These are now complete!
There are some notes at the bottom of the Migration Guide; don't pay
any attention to these as they are obsolete with Nexenta merging with
OpenIndiana.....
http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Installhttp://dev.xwiki.org/xwiki/bin/view/Drafts/Glassfish_Solarishttp://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Migration
I would like these to go 'live' and be put onto the production site if
applicable!
Regards,
Kaya
Hello everyone,
I'm looking for a way to have all users of a given groups. I know how to
check if a given user is from a certain group or not, but what I want if
with a given group, retrieve all the users of this group.
Is it possible and do you know how ?
Thanks,
Stéphanie
--
View this message in context: http://xwiki.475771.n2.nabble.com/Retrieve-all-the-users-of-a-given-group-t…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
Using XWIKI 3.0M2 =>
1) installing the SVG Macro from the XAR document
2) Granting all access rights (testing) to the 3 x SVG documents installed
in the Xwiki workspace.
I get:
Unknown macro: svg
The "svg" macro is not in the list of registered macros. Verify the
spelling or contact your administrator.
. when an individual user (authenticated and with rights to display the
page) hit one page which include this macro.
I have the following in the xwiki.cfg file:
#-# List of active plugins.
xwiki.plugins=\
com.xpn.xwiki.monitor.api.MonitorPlugin,\
com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin,\
com.xpn.xwiki.plugin.skinx.JsSkinFileExtensionPlugin,\
com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin,\
com.xpn.xwiki.plugin.skinx.CssSkinFileExtensionPlugin,\
com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin,\
com.xpn.xwiki.plugin.feed.FeedPlugin,\
com.xpn.xwiki.plugin.ldap.LDAPPlugin,\
com.xpn.xwiki.plugin.google.GooglePlugin,\
com.xpn.xwiki.plugin.mail.MailPlugin,\
com.xpn.xwiki.plugin.packaging.PackagePlugin,\
com.xpn.xwiki.plugin.query.QueryPlugin,\
com.xpn.xwiki.plugin.svg.SVGPlugin,\
com.xpn.xwiki.plugin.charts.ChartingPlugin,\
com.xpn.xwiki.plugin.fileupload.FileUploadPlugin,\
com.xpn.xwiki.plugin.image.ImagePlugin,\
com.xpn.xwiki.plugin.userdirectory.UserDirectoryPlugin,\
com.xpn.xwiki.plugin.usertools.XWikiUserManagementToolsImpl,\
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin,\
com.xpn.xwiki.plugin.autotag.AutoTagPlugin,\
com.xpn.xwiki.plugin.lucene.LucenePlugin,\
com.xpn.xwiki.plugin.diff.DiffPlugin,\
com.xpn.xwiki.plugin.rightsmanager.RightsManagerPlugin,\
com.xpn.xwiki.plugin.jodatime.JodaTimePlugin,\
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin,\
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin,\
com.xpn.xwiki.plugin.activitystream.plugin.ActivityStreamPlugin, \
com.xpn.xwiki.plugin.watchlist.WatchListPlugin, \
com.xpn.xwiki.plugin.tag.TagPlugin
What is wrong ?
Many thanks for your help,
Christophe
Hi,
I've got a livetable resulting in both 'public' and 'restricted'
documents: documents the current user has no view rights for. The
restricted documents appear as empty rows (that is, without cells) and
a message appears under the livetable: "(*) Some documents require
special rights to be viewed." (the asterisk isn't shown in the
livetable itself however).
See screenshot:
http://www.bild.me/bild.php?file=5924874Livetable_restricted_files.png
I would rather have the restricted documents not show up at all. Can
this be accomplished?
Thanks!
Joris
Hi Moritz,
On Jun 25, 2012, at 3:31 PM, Moritz Hesse (EnergieArchitektur) wrote:
> Hello,
>
> we have tried out XEclipse but as it seems to me there is neither auto
> completion nor syntax highlighting for groovy (while there is for velocity).
> Is there any way that we can activate these features for groovy as well?
No, it needs to be coded. See also http://jira.xwiki.org/jira/browse/XECLIPSE-43
> Otherwise: Is there a plugin for Netbeans as well, instead of Eclipse?
No. However XEclipse comes in 2 flavors: standalone app and plugin. Even if you use NB you can still use the standalone app but it won't be integrated in your coding environment…
To be honest, we have not had any active committer on XEclipse for a few years now and the project is waiting for someone to take the leadership and start coding and improving it.
Thanks
-Vincent
On Mon, Jun 25, 2012 at 4:25 PM, Moritz Hesse (EnergieArchitektur)
<moritz.hesse(a)ea-gmbh.de> wrote:
>>>>> Furthermore, the title of our appw/minutes look extremely disturbing
>>>>> and - to be honest - ugly:
>>>>> "platform.appwithinminutes.appHomePageDescriptionHeading" instead of
>>>>> "Projects". What went wrong?
I don't see what
"platform.appwithinminutes.appHomePageDescriptionHeading" has to do
with the title of your application home page. This translation key was
used to display the heading preceding the application description and
has been removed in
https://github.com/xwiki/xwiki-platform/commit/5ea7f9835fa20ad253552d400320…
and the home page sheet has been updated accordingly. Are you sure you
have imported the new version of AppWithinMinutes.LiveTableViewSheet
page (from the 4.0 XAR)? You can check by editing this page and
looking for this translation key. If you can find the translation key
in its content then it means you don't have the right version.
Hope this helps,
Marius
>>>>
>>>> This looks like missing translations. Did you overwritten
>>>> XWiki.XWikiPreferences page ?
>>>
>>> What you mean by overwritten? We have taken all 4.0 files to replace
>>> 3.5 files. But we have not manually changed them.
>>
>> The translation pages are registred in XWiki.XWikiPreferences page which
>> is one of the page you generally should never ovewrite when upgrading
>> exactly for this kind of issues. See
>>
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade#HUpgradingwikido
> cuments
>> for more details.
>
> How can I access this page to see if I can fix it there?
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
Hello community,
I'm stuck on a problem to query average ratings data from pages - I
installed the Ratings plugin, of course.
The following query works as expected, and shows the pages having average
votes, ordered by ratings then date :
#set($xwql = "select doc.fullName, ratings.averagevote from Document doc,
doc.object(XWiki.AverageRatingsClass) as ratings order by
ratings.averagevote desc, doc.date desc")
Of course, it will return only those pages for wich
XWiki.AverageRatingsClass exists.
Of course, what I would like, is this query to return ALL documents ordered
by ratings, considering no rating equals to value 0.
There are two problems that make this impossible to achieve with XWQL (or
I'd better say that I didn't find how) :
- first, to get all documents I would have to perform a LEFT JOIN. I tried
many syntaxes but could not achieve that. Even in pure JPQL I would not be
able to perform the LEFT JOIN and specify an ON clause anyway ...
- second, I planned to use COALESCE(ratings.averagevote, 0), to consider
that no ratings equal to average 0, but this keyword is not recognized by
XWQL
I realize that this is more a JPQL/Database issue than XWiki issue, but
ordering pages by average ratings is a very common and evident use-case as
long as you activate ratings, so I believe there must be a solution to find
... And sorting things in memory is really not a very attractive solution :(
(adding a XWiki.AverageRatingsClass object to all pages would also do the
trick but it seems really expensive ...)
Thanks,
Jeremie
--
View this message in context: http://xwiki.475771.n2.nabble.com/XWQL-and-ratings-tp7505249.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
On Mon, Jun 25, 2012 at 3:28 PM, Moritz Hesse (EnergieArchitektur)
<moritz.hesse(a)ea-gmbh.de> wrote:
>> > {{velocity}}
>> > #if($doc.name=="WebHome")
>> > #set($tree = $xwiki.doctree.getSpaceDocumentTree($doc.web))
>> > #else
>> > #set($tree = $xwiki.doctree.getDocumentTree($doc))
>> > #end
>> > #set($depths=["", "*", "**", "***", "****", "*****", "******",
>> > "*******",
>> > "********"])
>> >
>> > #foreach($leaf in $tree)
>> > #if($leaf.depth <= 8 && ($leaf.depth != 0 || $doc.name=="WebHome"))
>> > $depths.get($leaf.depth)
>> >
>> [[$xwiki.getDocument($leaf.fullName).getDisplayTitle()>>$leaf.fullName
>> > ]]
>> > #end
>> > #end
>> > {{/velocity}}
>>
>> Ok so that's actually a velocity script and not a macro or any kind
>> (the {{velocity}} itself is a macro that you use to write a script) :)
>>
>> Hard to tell you what's exactly wrong, you will have to debug a bit.
>> For example are you sure $xwiki.doctree plugin is still here ? Maybe
>> you forgot to put it in your new instance.
>
> I know that this as is just is a velocity sniplet, but I implemented it as a
> macro: I added a MacroClass to a specific page and I configed it that way
> that I could call it by {{childrenpagetree/}}. But as mentioned, this
> doesn't work anymore. What can I have destroyed while upgrading from 3.5 to
> 4.0?
Did you check that $xwiki.doctree return something as I suggested ?
>
> By the way: Macros in general do work. We have recently developed another
> macro (in 4.0) which also works.
>
> Thanks and best regards,
> Moritz
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
Hello,
we have tried out XEclipse but as it seems to me there is neither auto
completion nor syntax highlighting for groovy (while there is for velocity).
Is there any way that we can activate these features for groovy as well?
Otherwise: Is there a plugin for Netbeans as well, instead of Eclipse?
Thanks and bests,
Moritz
On Thu, Jun 7, 2012 at 10:38 AM, Moritz Hesse (EA GmbH)
<moritz.hesse(a)ea-gmbh.de> wrote:
> Hi Thomas,
>
> thanks for your respond.
>
>>> we were upgrading from XWiki 3.5 to Version 4. After upgrading
> successfully
>>> a self coded macro does not work anymore whereas all relevant files and
>>> contents are at its right place but it simply does not output anything (I
>>> don't know if the macro code runs through but does not output anything or
> if
>>> macro is not even executed).
>>
>> Hard to tell you exactly what is the issue without more informations.
>> First thing what kind of macro are you referring to (Wiki macro, java
>> macro, velocity macro, etc.) ?
>
> This is a regular velocity macro to display subpages as if you click on the
> information tab below the wiki page:
>
> {{velocity}}
> #if($doc.name=="WebHome")
> #set($tree = $xwiki.doctree.getSpaceDocumentTree($doc.web))
> #else
> #set($tree = $xwiki.doctree.getDocumentTree($doc))
> #end
> #set($depths=["", "*", "**", "***", "****", "*****", "******", "*******",
> "********"])
>
> #foreach($leaf in $tree)
> #if($leaf.depth <= 8 && ($leaf.depth != 0 || $doc.name=="WebHome"))
> $depths.get($leaf.depth)
> [[$xwiki.getDocument($leaf.fullName).getDisplayTitle()>>$leaf.fullName]]
> #end
> #end
> {{/velocity}}
Ok so that's actually a velocity script and not a macro or any kind
(the {{velocity}} itself is a macro that you use to write a script) :)
Hard to tell you what's exactly wrong, you will have to debug a bit.
For example are you sure $xwiki.doctree plugin is still here ? Maybe
you forgot to put it in your new instance.
>
> Worked beatifully in 3.5, but does not work anymore with 4.0.
>
>>> Furthermore, the title of our appw/minutes look extremely disturbing and
> -
>>> to be honest - ugly:
>>> "platform.appwithinminutes.appHomePageDescriptionHeading" instead of
>>> "Projects". What went wrong?
>>
>> This looks like missing translations. Did you overwritten
>> XWiki.XWikiPreferences page ?
>
> What you mean by overwritten? We have taken all 4.0 files to replace 3.5
> files. But we have not manually changed them.
The translation pages are registred in XWiki.XWikiPreferences page
which is one of the page you generally should never ovewrite when
upgrading exactly for this kind of issues. See
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade#HUpgradingwikid…
for more details.
>
> Thanks and bests,
> Moritz
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
How do you test a colortheme in colibri skin (the ?... parameter in the url)
How can you change the theme programatically in velocity?
example if browser language = nl set theme to nl
Gerritjan
The XWiki Development team is pleased to announce the 4.1.1 bug fix release.
Download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
And review the release notes here:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterpris…
This release fixes the following issues:
* XWIKI-7943 Impossible to save very large pages in jetty
* XWIKI-7940 Conflict reported when same existing document is already in the database and there is no previous official version of the XAR extension
* XWIKI-7939 Merge conflict resolution UI fails when there is no previous version
* XWIKI-7938 Conflict reported when an extension document have attachment when installing a xar
* XE-1190 Add suggest in Debian packages
* XE-1189 Debian package fail to upgrade
* XCOMMONS-201 class java.lang.StackOverflowError in LogQueue.error under some conditions
Thanks to the developers for getting these issues fixed promptly and thanks to the users
for your helpful bug reports and your patience.
Caleb
Thanks a lot, now it works :)
greets,
zae.
>>> Marius Dumitru Florea 21.06.12 16.27 Uhr >>>
Currently the easiest solution is to use a Large String property type
because its content is rendered and so the URL will be transformed in
a link. If you want to keep the Short Text property, you can do like
this:
(1) Edit the application home page in wiki edit mode and make this changes:
- 'shortText1': {'type': 'text', 'size': 10, 'filterable': true,
'sortable': true, 'html': false},
+ 'shortText1': {'type': 'text', 'size': 10, 'filterable': true,
'sortable': true, 'html': true},
(where 'shortText1' is the ID/name of your property holding the URL)
- 'resultPage' : 'AppWithinMinutes.LiveTableGenerator',
+ 'resultPage' : 'MyCustomLiveTableResults',
(2) Create MyCustomLiveTableResults page in the application space with
this wiki content:
----------8<----------
{{include document="XWiki.LiveTableResultsMacros" /}}
{{velocity}}
#if($xcontext.action == 'get' && "$!{request.outputSyntax}" == 'plain')
$response.setContentType('application/json')
#set($map = {})
#gridresult_buildJSON("$!request.classname" $request.collist.split(',') $map)
## Transform the URL property in a link.
#foreach($row in $map.get('rows'))
#set($url = $escapetool.xml($row.get('shortText1_value')))
#set($discard = $row.put('shortText1', "$url"))
#end
#set($json = $jsontool.serialize($map))
## We have to escape the translation key because it appears as JSON
value in the output.
#set($escapedEmptyValueTranslationKey =
$escapetool.javascript("${request.transprefix}emptyvalue"))
$json.replace($escapedEmptyValueTranslationKey, '-')
#end
{{/velocity}}
---------->8----------
See http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro
for more details.
Hope this helps,
Marius
On Thu, Jun 21, 2012 at 3:05 PM, Account wrote:
> Hi,
> i want to use the AppWithinMinutes-App to build a database of chemicals which we have in our labs. As one column i want to have a link to the wikipedia page of that chemical and i want the link to be displayed and clickable in the table, not only on the page of each entry.
> To do so i added a Short Text - field for this, but when i add an entry, it's only a link when i type it in the form [[http://de.wikipedia.org/wiki/Zinkfluorid]] and this only on the entry page. In the table it's a trimmed version (for example "org/wiki/Zinkfluorid") and it's no link. But when i type in [[Link>>http://de.wikipedia.org/wiki/Zinkfluorid]] it doesn't work, it's no link anymore and the code is not interpreted.
> How can i solve this problem?
> Thanks,
> zae.
>
> _______________________________________________
> 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
Hi,
i want to use the AppWithinMinutes-App to build a database of chemicals which we have in our labs. As one column i want to have a link to the wikipedia page of that chemical and i want the link to be displayed and clickable in the table, not only on the page of each entry.
To do so i added a Short Text - field for this, but when i add an entry, it's only a link when i type it in the form [[http://de.wikipedia.org/wiki/Zinkfluorid]] and this only on the entry page. In the table it's a trimmed version (for example "org/wiki/Zinkfluorid") and it's no link. But when i type in [[Link>>http://de.wikipedia.org/wiki/Zinkfluorid]] it doesn't work, it's no link anymore and the code is not interpreted.
How can i solve this problem?
Thanks,
zae.