I have Syntax Highlighting Application that "Provides Syntax Highlighting"
(uses Highlight.JS).
I want to install Highlight Macro(uses Highlight.JS with the same syntax),
because there is a right access problem with either Syntax Highlighting
Application or Highlight.JS. idk
What will happen? Do i have to delete Syntax Highlighting Application first?
I tried to delete, but after that Highlight JS Macro(which Highlight Macro
extension uses too) still remain.
--
View this message in context: http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-w…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi. I've installed Syntax Highlighting extension, but it highlights code only
for users which are in XWikiAdminGroup(i.e. with all rights and
permissions). For ordinary users the extension is available, but not
highlights code.
What is the reason?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Syntax-Highlighting-extension-tp7597773.h…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
We have pages having ONE UIExtension objects of XWiki.UIExtensionClass.
Using as
$services.uix.getExtensions('dashboard.mainMenu.items',{'sortByParameter' : 'displayorder'})
With a #foreach loop we can access all the parameters. (and other extension properties)
But is it possible to get the page information (Name, Title, Creator, Rights)
The use case is that we want a dynamic menu based on that information?
The following did not give the desired result:
#set($dashboardMenuItems = $services.uix.getExtensions('dashboard.mainMenu.items',{'sortByParameter' : 'displayorder'}) )
#foreach($dashboardMenuItem in $dashboardMenuItems)
#set($dashboardMenuItemDocument = $xwiki.getDocument($dashboardMenuItem))
#end
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
I am testing the current XWiki Enterprise 7.4 on Manjaro Linux as local
installation with default wiki content.
To test scripting, I wrote a few pages with a class and some objects.
After installing the "Scripting Documentation Application" extension,
nothing is running normally any more. All panels on the left and right
hand edge show the error message in red:
Failed to execute the [html] macro. Click on this message for details.
Clicking on that, shows the following stack trace.
Stopping and restarting didn't help anything.
The only way to repair this situation was to completely uninstall und
reinstall XWiki Enterprise. Following the same steps led to the same
errnoneous effect.
Does anyone have an idea?
Thank you in advance
Matthias
> java.lang.IllegalStateException: zip file closed
> at java.util.zip.ZipFile.ensureOpen(ZipFile.java:669)
> at java.util.zip.ZipFile.getEntry(ZipFile.java:309)
> at java.util.jar.JarFile.getEntry(JarFile.java:240)
> at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:128)
> at java.util.jar.JarFile.getJarEntry(JarFile.java:223)
> at org.xwiki.classloader.internal.ResourceLoader$JarInfo.getResource(ResourceLoader.java:428)
> at org.xwiki.classloader.internal.ResourceLoader.findResource(ResourceLoader.java:364)
> at org.xwiki.classloader.internal.ResourceLoader.findResource(ResourceLoader.java:287)
> at org.xwiki.classloader.URIClassLoader$URIResourceFinder.findResource(URIClassLoader.java:464)
> at org.xwiki.classloader.URIClassLoader$2.run(URIClassLoader.java:274)
> at org.xwiki.classloader.URIClassLoader$2.run(URIClassLoader.java:270)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.xwiki.classloader.URIClassLoader.findResource(URIClassLoader.java:269)
> at java.lang.ClassLoader.getResource(ClassLoader.java:1093)
> at java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:232)
> at org.xwiki.classloader.xwiki.internal.ContextNamespaceURLClassLoader.getResourceAsStream(ContextNamespaceURLClassLoader.java:128)
> at org.apache.xerces.parsers.SecuritySupport$6.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.xerces.parsers.SecuritySupport.getResourceAsStream(Unknown Source)
> at org.apache.xerces.parsers.ObjectFactory.findJarServiceProvider(Unknown Source)
> at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
> at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
> at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
> at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
> at org.xwiki.xml.internal.html.DefaultHTMLCleaner.getAvailableDocumentBuilder(DefaultHTMLCleaner.java:137)
> at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:183)
> at org.xwiki.rendering.internal.macro.html.HTMLMacro.cleanHTML(HTMLMacro.java:189)
> at org.xwiki.rendering.internal.macro.html.HTMLMacro.execute(HTMLMacro.java:159)
> at org.xwiki.rendering.internal.macro.html.HTMLMacro.execute(HTMLMacro.java:73)
> at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
> at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
> at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
> at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253)
> at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126)
> at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56)
> at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
> at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
> at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113)
> at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
> at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
> at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)
> at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:692)
> at sun.reflect.GeneratedMethodAccessor406.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> 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.ASTBlock.render(ASTBlock.java:72)
> at org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:72)
> 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.evaluateInternal(DefaultVelocityEngine.java:256)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
> at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
> at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854)
> at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821)
> at sun.reflect.GeneratedMethodAccessor192.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> 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.evaluateInternal(DefaultVelocityEngine.java:256)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
> at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
> at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854)
> at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821)
> at sun.reflect.GeneratedMethodAccessor192.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> 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.evaluateInternal(DefaultVelocityEngine.java:256)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
> at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
> at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
> at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:431)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
> 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:687)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
> at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
> at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
> at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
> at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
> at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
> at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
> at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
> at org.eclipse.jetty.server.Server.handle(Server.java:499)
> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
> at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
> at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
> at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
> at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
> at java.lang.Thread.run(Thread.java:745)
Hi,
when working through the Distrbution Wizard of our freshly installed
XWiki Enterprise 7.4 (WEB installation), at step 1 (User Interface) we
are faced with the following message:
"
We couldn't find any extension with id
'org.xwiki.enterprise:xwiki-enterprise-ui-mainwiki' and version '7.4'.
Make sure you have the right extension repositories configured.
"
The complete creenshot can be found at http://imgur.com/Uc2F9pr.
I've copied the file
"org.xwiki.enterprise:xwiki-enterprise-ui-mainwiki-7.4.xar" (from
http://extensions.xwiki.org/xwiki/rest/repository/extensions/org.xwiki.ente…")
into WEB-INF/extensions to no avail.
The installation instructions doesn't mention any required step
regarding the configuration of extensions or extension respositories or
where these respositories are. Therefore I'm a little bit at a loss here.
Our system is running on OpenSuSE 13.1 with PostgreSQL 9.2.14 (from
repo), Apache Tomcat 8.0.30 (manually installed) and XWiki Enterprise
7.4 (WEB, manually installed).
Any pointer to fix this problem are appreciated.
Cheers
Frank
Hi,
The last half year we have used a free wiki from myXWiki.org, thanks a lot.
Now we have decides to have a dedicated XWiki. Is it possible to migrate the local users in that myXWiki instance to the new wiki.
I tried to export one user as XAR and import it, but it does not convert to a user-object
The same problem with a macro page with the XWikiMacro and XWikiMacroParameters objects.
It results in empty wiki pages in the new wiki
myXWiki = 7.3
The new wiki is on 6.4.x
So maybe a downgrade export/import not possible?
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
Is there a way to use the PDF Viewer macro and display the PDF at a particular heading within the document? (Akin to the header linking within a page link#Hheader)?
Paul Pinkerton
KnowledgeNow Project Lead
pinkerp(a)lao.on.ca<mailto:pinkerp@lao.on.ca>
Skype: pinkerp.lao<skype:pinkerp.lao>
Association of Community Legal Clinics of Ontario
416-847-1418 or 1-866-965-1416x 5177
www.aclco.org<http://www.aclco.org/>
I'm trying to setup an information page and wanted to see if someone has any ideas on how I can do this more easily. Since this is for several annual event information pages, doing the maintenance post-event to move/ delete 20+ pages each time is not a feasible solution.
Here's my idea for a 'better way'
I have a single Agenda page which shows the overall agenda for the event. Each session is linked to a specific information page for that session. (This is already in place).
All of these info pages are essentially PDF's which I'm using the PDFViewer macro to display (primarily to resolve user-browser handling of PDFs differences). The pages also have handouts attached as documents - and displayed in-page using the AttachmentViewer macro.
This is all working, but I would like to see if on the Agenda page, the link could go to a SINGLE PDF Viewer page that would display the appropriate PDF for the link clicked. I'm likely going to move all of the attachments to a single page anyway, so that's not particularly an issue. I don't know if the link on the agenda page can act like a form submission and configure the PDFViewer on-click to display different PDF's.
Your thoughts?
Paul Pinkerton
KnowledgeNow Project/ ACLCO
Hi,
I have an object on a page. Once in edit mode, I want certain properties of the object not to be editable. This in itself is not an issue since I can display the value using $object.getValue(‘propertyname’). I have however a custom displayer in place for this property which is activated using $doc.display($propertyname.getName()). Is it possible to use this displayer in edit mode?
With kind regards,
Peter
Is it possible to call a java component from a JavaScriptExtension? like
this:
In javascript:
require(['jquery'], function ($) {
$('#ToJava').click(function(){
var returnValue = $services.mycomponent.mymethod( someNumber );
// use return value
});
});
In java:
public int mymethod(int num){
return num +1;
}
I know that I can do the ajax round trip and invoke the method through
velocity:
http://extensions.xwiki.org/xwiki/bin/view/Extension/AJAX+example
-- just wondering if there is a way to shortcut this process by avoiding
velocity and only working in js?
or is my logic flawed?
--
View this message in context: http://xwiki.475771.n2.nabble.com/calling-a-java-component-from-JavaScriptE…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi all, XWiki newbie here, just setting up XWiki for my company.
In addition to the Main wiki, I have created 2 other wikis, say “Development” and “Support”. Currently I can only switch among the wikis via the Wiki Index (in fact, the other wikis do appear in the breadcrumb widget at the top, but not when in the Main wiki).
I would like to put shortcuts to each wiki in the left panel, ideally with an icon and the wiki name. However, I have not found an out-of-the-box way to do this. Can someone point me in the right direction?
Thank you.
Regards,
Cris
What is the best way to get JSON data from a java component. In my java
component I'm compiling JSONObjects and JSONArrays, I would like to return
this data to my velocity script in JSON format, is this possible?
something like:
{{velocity wiki="false"}}
#if("$!request.outputSyntax" != '')
$response.setContentType('application/json')
#end
#set($map = [])
#set ($rightIN = ${request.rightIN})
#set ($spacenameIN = ${request.spacenameIN})
#set($disgard =
$map.add($services.g_pagebuilder.userAccessFindPages($spacenameIN,$rightIN
)))
$jsontool.serialize($map)
{{/velocity}}
and the Java:
public JSONObject javacomp(String spacenameIN, String rightIN ){
JSONObject obj = new JSONObject();
try {
obj.put("spacenameIN ", spacenameIN );
obj.put("rightIN", rightIN );
} catch (JSONException e) {
e.printStackTrace();
}
return obj;
}
At the end I would like to access this json object as a data return from an
ajax call. Is this possible?
Thanks
Gerrie
--
View this message in context: http://xwiki.475771.n2.nabble.com/Returning-JSON-data-from-a-java-component…
Sent from the XWiki- Users mailing list archive at Nabble.com.
In 7.4, I've created an app within minutes. One of the properties in the app
is a computed field that returns a list of users that meet some specific
criteria. If I leave the custom display field for the property blank, the
contents are displayed as follows:
[XWiki.john_smith, XWiki.mark_sack]
What I would really like to do is display them as hyperlinks to the
corresponding user page. I thought that I could use a script in the custom
display field to accomplish this. Reading the following note
http://www.xwiki.org/xwiki/bin/view/FAQ/Which+variables+I+can+use+in+%22Cus…
there are some variables available. It looks like the $value variable should
contain the computed list of users. But if I put a script like the following
into the custom display field:
{{velocity}}
$name
$prefix
$object
$type
$value
{{/velocity}}
the result is as follows
Usuarios
Secti.Admin.Setores.Code.SetoresClass_0_
com.xpn.xwiki.api.Object@543f3466
view
$value
The first four values are correct as far as I can tell. But the $value
variable does not appear to be populated. Does anyone have a suggestion as
to how I can achieve my desired result with the hyperlinks?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Custom-display-for-computed-field-which-i…
Sent from the XWiki- Users mailing list archive at Nabble.com.
With XWiki 7.4 I have a site setup in Brazilian Portuguese (pt_BR). I edited
the localization settings as follows:
Multilingual - Yes
Supported languages - pt_BR, en
Default language - pt_BR
After saving the settings, the site looks like it switches to the pt local
(European Portuguese?). I can tell this because the pt local is much more
sparsely translated. On the drop down menu on the right, I now see a
Languages item with Portuguese and English options and selecting English
switches the site to English.
I go back to the drop down menu and select languages. But now I only see
English - Portuguese is not listed as an available language.
I tried to repeat the above with a fresh install. This time I first set the
local to pt (no multilingual support) and verified that the site is switch
to pt. Then I set the multilingual support to yes and added the en local (pt
still the default). Now the site switches immediately to English and the
only language available on the drop down menu on the right is English.
I'd appreciate some help in setting up my site for multilingual support with
both English and Brazilian Portuguese. Is there something I'm doing wrong?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Problems-setting-up-multilingual-site-tp7…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Good day.
I'm trying to write a java component to set rights to a space and the space
children. Normally, the user would set this on the space when clicking on
administer page>users and groups>Rights: page and children, where the user
can set access rights for a group to effect the space and its children.
I'm trying to achieve this with a java component and currently I'm attaching
an XWikiRights object with the specified group and rights to the
<space>.WebHome page. However, this only effects the one page and not the
children, also view rights only leaves comment and page creating rights
which is not desired. Am I understanding the rights objects wrong? How do I
achieve this in Java, currently I have:
XWikiDocument doc = xwiki.getDocument(docref, xcontext); //
referance to the <space>.WebHome
DocumentReference classdoc =
createDocumentReference(xwikiName,"XWiki","XWikiRights",false);
BaseObject DSErightsobj = doc.newXObject(classdoc, xcontext);
DSErightsobj.set("groups", DSEname, xcontext);
DSErightsobj.set("users", "", xcontext);
DSErightsobj.set("levels", "view", xcontext); // space right
DSErightsobj.set("allow", 1, xcontext);
xwiki.saveDocument(doc, xcontext);
--
View this message in context: http://xwiki.475771.n2.nabble.com/XWikiRights-for-groups-on-page-and-childr…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Thxs for this log.
I tested with wget (through same proxy of my browser) and I
obtain a xxxxxxxxx
=> It's working well with wget too (without option)
I tested on my developpment server on ou intranet (through
our proxy): $xwiki.getURLContent('https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanD…')
working.
Do you need my log to make it working on myxwiki.org? If yes
which one?
> The issue is
> with the HTTPS protocol used in the URL.
> In the logs of myxwiki.org there’s:
> Failed to retrieve content from
> [https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanD…] javax.net.ssl.SSLHandshakeException:
> Received fatal alert: handshake_failure
> At this point I don’t know
> what’s the problem. We’re using httpclient in
> getURLContent() which supports HTTP over SSL out of
the
> box.
> Thanks-Vincent
>
> >
> Thxs for your help.
> >
> > Pascal B
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Thxs for this log.
I tested with wget (through same proxy of my browser) and I obtain a "500 Internal Server Error" (I tested with SSLv2, SSLv3, TLSv1, TLSv1_1 and TLSv1_2 protocol) :-/
I tested on my developpment server on ou intranet (through our proxy): $xwiki.getURLContent('https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanD…') working.
Do you need my log to make it working on myxwiki.org? If yes which one?
> The issue is
> with the HTTPS protocol used in the URL.
> In the logs of myxwiki.org there’s:
> Failed to retrieve content from
> [https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanD…] javax.net.ssl.SSLHandshakeException:
> Received fatal alert: handshake_failure
> At this point I don’t know
> what’s the problem. We’re using httpclient in
> getURLContent() which supports HTTP over SSL out of the
> box.
> Thanks-Vincent
>
> >
> Thxs for your help.
> >
> > Pascal B
>
Hi users,
I am wondering on how to create an XClass from java, and bind it to a
class-sheet to be used to represent several objects as XWiki pages. How can
I achieve that in a way that allow me to incrementaly update the object
every time a modification is performed?
Thanks for your help,
Giordano.
Hi,
(disclaimer: new user here)
I updated from 7.4RC1 to 7.4 (Debian packages, Tomcat7, MySQL). When I
click the navigation arrows in the Main wiki, they come up empty. If I
create a new wiki, it works fine.
What could have happened here?
Appreciate any help, thank you!
Regards,
Rodrigo
> Anyway, how do you found default alias of table name
> then?
>
> By example the alias "act" in my hql string here
> "act.eventId" (I found it by chance in error
> log)
>
> #set($results=
> $xwiki.activitystream.searchEvents("act.eventId in
> ($ListIn)", false, 0, 0))
>
> Here i suppose? https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
>
> Yes. The API is not optimal, I
> agree, and it was not really improved along the years.
ha ha i never said that!
If alias and field name, usable in hql query, are documented it doesn't matter :-)
Thxs for ur help
I am migrating the xwiki installation from 3.5 to 6.4. I followed the
upgradation steps and found the best way to upgrade is to install 6.4 war
file create an empty db and and hit the xwiki url which would create the
db schema and then launches the distribution wizard which is used to
install 6.4 ui and xar After this login as admin and import the 3.5 xar
file in new installation which I exported from existing installation The
important thing to note is I had to manually select the required
space/pages customized panels themes and users specific to my project from
older xar Please let know whether this the best way or any other way to
upgrade my xwiki
Awaiting your response on this..
Regards
Gaurav
Thxs => useful links bookmarked :-)
Anyway, how do you found default alias of table name then?
By example the alias "act" in my hql string here "act.eventId" (I found it by chance in error log)
#set($results= $xwiki.activitystream.searchEvents("act.eventId in ($ListIn)", false, 0, 0))
Here i suppose? https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
--------------------------------------------
En date de : Mer 20.1.16, Eduard Moraru <enygma2002(a)gmail.com> a écrit :
Objet: Re: [xwiki-users] Fw : Fw : Re: Fw : Re: Fw : Re: How can I get event object through a form
À: "Pascal BASTIEN" <pbasnews-xwiki(a)yahoo.fr>, "XWiki Users" <users(a)xwiki.org>
Date: Mercredi 20 janvier 2016, 16h36
Hi,
This is the activitystream hibernate
mapping where you can see the exact property names:
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
...and this is the
regular XWiki model mapping (corresponding to the other
tables observed in http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema
)
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
Remember that, when
writing HQL, you need to look at the hibernate mapping, not
just the SQL database schema (which is useful, but can be
misleading).
Thanks,
Eduard