xwiki

java.lang.LinkageError: ClassCastException RuntimeDelegate.class

一曲冷凌霜 提交于 2021-02-10 06:01:21
问题 I have this error java.lang.LinkageError: ClassCastException: attempting to tomcat-debug-eclispe/wtpwebapps/xwiki-debug-eclipse/WEB-INF/lib/jsr311-api-1.1.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class to tomcat-debug-eclispe/lib/jboss-jaxrs-api_2.0_spec-1.0.1.Final.jar!/javax/ws/rs/ext/RuntimeDelegate.class I'm using an open source wiki platform called xwiki https://github.com/xwiki/xwiki-platform This platform somewhere include jsr311-api-1.1.1.jar and need it. Now I want to connect through

java.lang.LinkageError: ClassCastException RuntimeDelegate.class

ぐ巨炮叔叔 提交于 2021-02-10 06:00:47
问题 I have this error java.lang.LinkageError: ClassCastException: attempting to tomcat-debug-eclispe/wtpwebapps/xwiki-debug-eclipse/WEB-INF/lib/jsr311-api-1.1.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class to tomcat-debug-eclispe/lib/jboss-jaxrs-api_2.0_spec-1.0.1.Final.jar!/javax/ws/rs/ext/RuntimeDelegate.class I'm using an open source wiki platform called xwiki https://github.com/xwiki/xwiki-platform This platform somewhere include jsr311-api-1.1.1.jar and need it. Now I want to connect through

Velocity Variable(use together string and integer variables)

試著忘記壹切 提交于 2021-01-27 22:34:32
问题 How can I use String and Integer variable s it together in " Velocity "? #set ($var1 = "exp"+1) I tried a few times but I could not. Any help will be highly appreciated. 回答1: If you were trying to do concatenation, it's not supported by Velocity, not even for 2 Strings. Instead, you should use string interpolation. Example: #set ($string = "exp") #set ($number = 1) #set ($interpolatedExample1 = "$string$number") #set ($interpolatedExample2 = "${string}someStringLiteral$number") Read more

Velocity Variable(use together string and integer variables)

孤街醉人 提交于 2021-01-27 20:31:36
问题 How can I use String and Integer variable s it together in " Velocity "? #set ($var1 = "exp"+1) I tried a few times but I could not. Any help will be highly appreciated. 回答1: If you were trying to do concatenation, it's not supported by Velocity, not even for 2 Strings. Instead, you should use string interpolation. Example: #set ($string = "exp") #set ($number = 1) #set ($interpolatedExample1 = "$string$number") #set ($interpolatedExample2 = "${string}someStringLiteral$number") Read more

Set user and group rights to document in XWiki

旧巷老猫 提交于 2020-08-07 07:57:41
问题 I'm writing a java component which build all the pages in a wiki. What would be the best way to assign the user rights or groups which may view the page or spaces from within the java service component? Really struggling to find details on this in the API. 回答1: You are finding no details in the API, because the Rights API is only about reading rights information, not setting rights If you want to set permissions on pages programatically, and you can assume that the default permission handler

How do I programmatically create new groups with specific set of rights on XWiki?

那年仲夏 提交于 2020-03-25 05:51:31
问题 I'm writing my own XWiki Authenticator (that extends XWikiAuthServiceImpl ) and therein, I want to create few groups, each with different sets of rights. How do I do it programmatically? Example, XWiki.MyStandardGroup - view , edit , comment XWiki.MyClassicGroup - view , edit , comment , script XWiki.MyAdminGroup - view , edit , commit , script , delete , admin Also, I create the users programmatically. How do I give different access rights to different sets of users? On the conceptual level,

xwiki开发指南1-使用XWiki创建FAQ应用

ⅰ亾dé卋堺 提交于 2020-02-06 08:26:44
本文是按照XWiki官网开发指南-FAQ应用创建,自己翻译总结的版本。 此篇含有大量图片,关于XWiki的开发,将在下一篇讲解。 关于XWiki的部署也会单独写一篇基于docker的部署文。 使用XWiki创建FAQ应用 1.首先下载并部署XWiki(之后会补充一个基于docker部署XWiki的教程) 2.找到应用面板,点击 更多应用 里边的 Create your own 如果没有找到侧边栏应用面板可以在首页点击 管理页面 ->外观-> 面板编辑 选择 左边栏 再切换到 面板列表 ,将 应用 拖拽到左边栏中。 3.点击 Create you own 之后再点击 Create Application 会进入应用创建导航 在APPLCATION NAME下填写应用名FAQ,如果应用名已经本占用使用其他应用名,点击下一步 第二步可以根据你的需求给你的页面添加组件,具体的有哪些组件可以在右侧找到,拖拽即可。这里选择一个 Long Text 组件,并更改组件显示名为ANSWER 第三步可以选择一个应用图标,还可以选择在哪里可以创建FAQ,还有FAQ可以创建到哪里等,如果暂时没搞懂保持默认就好。 第四步可以选择在FAQ页显示问题页的列。点击加号添加,还可以拖动红框里的选项改变显示顺序。点击 Finish 完成向导。 最后来到FAQ页,点击 ADD NEW ENTRY 就可以添加问题了 来源

How do I check for documents with more than 1 Tag in xwiki?

断了今生、忘了曾经 提交于 2019-12-24 09:41:37
问题 So I want to access all the documents that are tagged using 2 tags instead of one. For example I want all photoshop tutorial documents.If I searched with the tag tutorial I would get other software tutorials too and if I use the tag photoshop i get all documents and not just the tutorials. I should be able to provide 2 tags and get documents which are tagged with both these tags. Right now this is what I did, #set ($list = $wiki.tag.getDocuments($tag)) #set ($list2 = $list.getDocuments($tag2)

Pass Button Value using javascript and make it usable in xwiki macro

一个人想着一个人 提交于 2019-12-13 03:59:21
问题 So I have 2 buttons and each button click is supposed to call 2 different functions. I figured I can use Javascript to get the values but how do I get the value to be usable in a macro? What I have tried is this <script type="text/javascript"> function getVal(value){ #set $value=value alert(value) } </script> Obviously this does not work. Without the #set $value=value code, I see an alert every time I click on something. 回答1: You're trying to mix two completely different languages. One is

Loop through a list of Tags and compare xWiki

若如初见. 提交于 2019-12-13 02:39:05
问题 I have a xwiki project with a Tag system implemented. What I am trying to do is solve this problem. When I click on a Tag I get the correct output but I want to sort the documents according to their other Tags, which means I need a way to search by multiple tags. What I have done is get a list of documents tagged with the first tag then use #foreach to look through each document for the Tags I need to show. #set ($tag = "$!{request.get('tag')}") #set ($list = $xwiki.tag.getDocumentsWithTag(