Re: [xwiki-users] edit page rights problem
What do you mean with XE?? Tnx Raffo Sergiu Dumitriu-2 wrote: raffovi wrote: Hi all, sometimes when I try to change rights, xwiki doesn't updates all changes. This problem appends when I have more than one column rights set and I try to change some allow cells into deny Regards Raffo Hi, What version of XE are you using? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://www.nabble.com/edit-page-rights-problem-tp15434468p15450978.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] edit page rights problem
If you mean xwiki ... i'm using xwiki enterprise 1.2.2 Regards Raffo Sergiu Dumitriu-2 wrote: raffovi wrote: Hi all, sometimes when I try to change rights, xwiki doesn't updates all changes. This problem appends when I have more than one column rights set and I try to change some allow cells into deny Regards Raffo Hi, What version of XE are you using? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://www.nabble.com/edit-page-rights-problem-tp15434468p15450980.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Upgrade from XWiki Version 0.9.840
Hello, we are currently running XWiki Version 0.9.840 in our intranet. Due to regular problems we have with pages history being corrupted, absence of wysiwig editor, we would like to upgrade our xwiki version. It seems that the replacement for that xwiki is xwiki enterprise 1.2.2. We tried to do that upgrade on a copy database, but we hit that problem upon accessing: java.lang.UnsupportedClassVersionError: org/exoplatform/container/PortalContainer (Unsupported major.minor version 49.0) It seems (http://www.nabble.com/Plexus-version-error-td14888606.html) that it's linked to the presence of exo components that requires java 1.5. However, since that tomcat run also other applications, upgrade to 1.5 is not an option. What is the latest xwiki that works with 1.4 version and where should i go to download it? Also, has the authentification mecanism been changed since 0.9? We are using a custom password checking class (xwiki.authentication.authclass=be.rmi.intranet.XWikiNISAuthService). Is that still supported? If no, is container managed authentification supported? Thanks -- David Delbecq Institut Royal Météorologique Ext:557 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Upgrade from XWiki Version 0.9.840
Hi David, On Feb 13, 2008, at 12:34 PM, David Delbecq wrote: Hello, we are currently running XWiki Version 0.9.840 in our intranet. Due to regular problems we have with pages history being corrupted, absence of wysiwig editor, we would like to upgrade our xwiki version. It seems that the replacement for that xwiki is xwiki enterprise 1.2.2. We tried to do that upgrade on a copy database, but we hit that problem upon accessing: java.lang.UnsupportedClassVersionError: org/exoplatform/container/ PortalContainer (Unsupported major.minor version 49.0) It seems (http://www.nabble.com/Plexus-version-error-td14888606.html) that it's linked to the presence of exo components that requires java 1.5. However, since that tomcat run also other applications, upgrade to 1.5 is not an option. What is the latest xwiki that works with 1.4 version and where should i go to download it? I don't think we have such a version since exo moved to 1.5 a long time ago. There are probably ways to modify xwiki to make it work with 1.4 but we can't spend our time on this since: 1) lots of framework we use have all been updated to 1.5 so if we want to uprgade them we also need 1.5 2) Java 1.5 has been released since 2004! So it's high time we move to 1.5 3) Keeping 1.4 is making our developer life difficult and preventing us to use the benefits of 1.5 So I'd personally like to officialize that we use 1.5 and start using 1.5 constructs and frameworks. In your case you could use another tomcat install for example. Also, has the authentification mecanism been changed since 0.9? We are using a custom password checking class (xwiki .authentication.authclass=be.rmi.intranet.XWikiNISAuthService). Is that still supported? I don't think we made changes but since you're using a very old version I'm not sure. I guess the best way to check is to try it... If no, is container managed authentification supported? It should although I haven't tried that... Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] rendering pages with Groovy code
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote: Hi all, We are facing a weird issue. The following code (provided the right host name, username and password)... áéíóú % import groovy.sql.Sql db = Sql.newInstance(jdbc:mysql://hostname/database, username, password, com.mysql.jdbc.Driver) List samplesIA = db.rows('SELECT * FROM saltmines s where es like I and ess like A and ids=1') % Tomáronse un total de % println ${samplesIA.size()}% mostras da secuencia sedimentaria do perfil P3-6-IA. Edited by any user but admin with programming rights is rendered as... http://mire.environmentalchange.net/~webmaster/images/RightCharaters.png Edited by admin it is rendered this other way... http://mire.environmentalchange.net/~webmaster/images/WrongCharacters.png Please, not the question marks and the absence of the number 32. This happens with any page containing Groovy code in this server, but I am not able to reproduce the problem in my test environment. Both of them run 1.3-milestone-1.7186. Please, do you know why this could happen? Thanks! Best regards, Ricardo Probably an encoding issue. Can you check the values of: - file.encoding jvm property - xwiki.encoding in xwiki.cfg -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] CamelCase
On wikimatrix.org I read CamelCase is optional feature in xwiki. How can I switch it on ? What I shoud do when I need translate xwiki user interface to Slovak language ? Frantisek Kall ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Need page saved by admin for hosted wiki
Hi guys, Been looking to get one of my hosted wiki pages saved (protected calls inside page), can someone please update? Brandon Esbach Software Engineer Wireless Systems Segment Tyco Electronics 4 Eastgate Road Eastgate Little Island Co. Cork Ireland Tel: +353-21-4808305 Email: [EMAIL PROTECTED] ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] $xwiki.sendMessage
Hi Brandon, here is how we use it: $mail = Content-type: text/plain; charset=iso-8859-1${xwiki.nl}To: YourEmailTarget${xwiki.nl}Subject: YourSubject${xwiki.nl}${xwiki.nl}Actual Email Content${xwiki.nl}${xwiki.nl} Note the absence of spaces and the - your answer may lie somewhere in there. Hope this helps, Guillaume On 13/02/2008, Esbach, Brandon [EMAIL PROTECTED] wrote: Updated to the suggested additional ${xwiki.nl} and it's just been resaved (thanks Raffaello :) ) No difference - still no subject line. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergiu Dumitriu Sent: 12 February 2008 16:49 To: XWiki Users Subject: Re: [xwiki-users] $xwiki.sendMessage Try using two $xwiki.nl Esbach, Brandon wrote: Hi Guillaume, I don't seem to be getting any subject when using this method; is there something else maybe restricting this? -- -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Guillaume Lerouge *Sent:* 06 February 2008 17:57 *To:* XWiki Users *Subject:* Re: [xwiki-users] $xwiki.sendMessage Actually you can. You need to write this in your email : #set ($youremail = Subject: Your Subject Here ${xwiki.nl http://xwiki.nl} Your Email Content) And then use $youremail in the $xwiki.sendMessage method as the email content parameter. Guillaume On 06/02/2008, *Esbach, Brandon* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: No problem, I understand. Is it likely that sendMessage will also become disabled? Or, is there a way to add in the subject to the sendMessage call? *From:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] *On Behalf Of *Guillaume Lerouge *Sent:* 06 February 2008 17:48 *To:* XWiki Users *Subject:* Re: [xwiki-users] $xwiki.sendMessage Hi, I think the plugin hasn't been activated on the farm for fear of people using it to send spam messages... I talked to our admin about it but he thinks it wouldn't be safe to do otherwise. Sorry about that... Guillaume On 06/02/2008, *Esbach, Brandon* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, Doesn't seem to be installed on the farm, do I need to specifically request the plugin to be activated for the virtual wiki, or do I need to import a xar for it to work? *From:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] *On Behalf Of *Esbach, Brandon *Sent:* 06 February 2008 15:46 *To:* XWiki Users *Subject:* Re: [xwiki-users] $xwiki.sendMessage Hi Guillaume, This is for the hosted wiki on the wiki farm. Is this plugin working there? *From:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] *On Behalf Of *Guillaume Lerouge *Sent:* 06 February 2008 15:06 *To:* XWiki Users *Subject:* Re: [xwiki-users] $xwiki.sendMessage Hi Brandon, This method has been deprecated in favor of using the Mail Sender Plugin ( http://code.xwiki.org/xwiki/bin/view/Plugins/MailSenderPlugin ). The plugin offers 4 different methods, some of them allows you to set the subject of your email. Check the example described at the end of the page for a live example. Guillaume On 06/02/2008, *Esbach, Brandon* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi guys.. Can't seem to find in the api any means to set the subject for a message being sent using this method - is this not possible? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- http://wikibc.blogspot.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] edit page rights problem
The error happens when I try to change a cell from allow to deny only when on the same row another cell is set to deny | view | comment | edit | delete ___ view | deny | Error | Error | Error comment| Error | deny | Error | Error edit | Error | Error | deny | Error delete| Error | Error | Error | deny Regards Raffo raffovi wrote: If you mean xwiki ... i'm using xwiki enterprise 1.2.2 Regards Raffo Sergiu Dumitriu-2 wrote: raffovi wrote: Hi all, sometimes when I try to change rights, xwiki doesn't updates all changes. This problem appends when I have more than one column rights set and I try to change some allow cells into deny Regards Raffo Hi, What version of XE are you using? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://www.nabble.com/edit-page-rights-problem-tp15434468p15459380.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] CamelCase
Hi Frantisek, On Feb 13, 2008, at 3:41 PM, Frantisek Kall wrote: On wikimatrix.org I read CamelCase is optional feature in xwiki. How can I switch it on ? hmmm not sure we have that, maybe someone has written such a plugin or feature. We do have something a bit similar here: http://code.xwiki.org/xwiki/bin/view/Plugins/AcronymToLinkPlugin So it would be easy to write a similar plugin, you would only need to change very little code to do that I think. What I shoud do when I need translate xwiki user interface to Slovak language ? See http://dev.xwiki.org/xwiki/bin/view/Community/Contributing Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] setUser admin
Hi all, how can I execute a procedure using Admin while I'm logged as another User? Tahnks Raffo -- View this message in context: http://www.nabble.com/setUser-admin-tp15461068p15461068.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] edit page rights problem
Yes, XE means XWiki Enterprise. We had this problem with an older release, but it was fixed. Are you sure you are using XE 1.2.2, with all its skin files? If you have files from an older install (1.2 RC), then you should replace those files with the ones from 1.2.2 I just test with both 1.3 trunk, 1.2 and 1.2.2, and it works fine. Sergiu raffovi wrote: The error happens when I try to change a cell from allow to deny only when on the same row another cell is set to deny | view | comment | edit | delete ___ view | deny | Error | Error | Error comment| Error | deny | Error | Error edit | Error | Error | deny | Error delete| Error | Error | Error | deny Regards Raffo raffovi wrote: If you mean xwiki ... i'm using xwiki enterprise 1.2.2 Regards Raffo Sergiu Dumitriu-2 wrote: raffovi wrote: Hi all, sometimes when I try to change rights, xwiki doesn't updates all changes. This problem appends when I have more than one column rights set and I try to change some allow cells into deny Regards Raffo Hi, What version of XE are you using? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] setUser admin
How?? Can you tell me sometring more? Thanks Raffo Sergiu Dumitriu-2 wrote: raffovi wrote: Hi all, how can I execute a procedure using Admin while I'm logged as another User? Tahnks Raffo Using programming rights. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://www.nabble.com/setUser-admin-tp15461068p15466402.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] setUser admin
raffovi wrote: How?? Can you tell me sometring more? Thanks Raffo Well, I don't know what are you calling a procedure. Let me guess it is a piece of code (Groovy for instance) embedded in a XWiki document. It must be edited by an user having programming rights. Then, any user accessing this document will get the same result. % import groovy.sql.Sql db = Sql.newInstance(jdbc:mysql://hostname/databasename, username, password, com.mysql.jdbc.Driver) List samplesIA = db.rows('SELECT * FROM saltmines s where es like I and ess like A and ids=1') % n: % println ${samplesIA.size()}% For instance, this simple Groovy script will return the number of rows in the SQL query passed to the db.rows function only if it is edited and saved by an user having programming rights (and provided the right host, username, password and JDBC library are in place). If the document containing this code is edited by any other user without those rights, the code won't be executed. There are tones of much better examples and useful pieces of code in the XWiki site. HTH, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] CamelCase
Frantisek Kall wrote: On wikimatrix.org http://wikimatrix.org I read CamelCase is optional feature in xwiki. How can I switch it on ? 1. Extract the file radeox_markup_xwiki.properties from webapp-root/xwiki/WEB-INF/lib/xwiki-core-*.jar into webapp-root/xwiki/WEB-INF/classes/ 2. Edit /xwiki/WEB-INF/classes/radeox_markup_xwiki.properties and replace filter.link.match=\\[(.+?)\\] with filter.link.match=\\b([A-Z][a-z0-9_]*(?:[A-Z][a-z0-9_]*)+)\\b 3. Restart XWiki Now you have support for CamelCase, but the WYSIWYG editor will not be able to work with these kind of links. What I shoud do when I need translate xwiki user interface to Slovak language ? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Creating a class : hHow to add tye of properties?
HERICHER Benoit DSIC BUA wrote: Hi, I would like to create a class Contact with a property PersonalAddress. As I guess that will have to reuse the concept of Address to manage other things , I decide to create first a class Address and then I would like to assign this type to the property PersonalAddress of the class Contact as one would do in OO Languages like Java ; but it doesn't seem possible or did I miss something? Thank you Benoît Hi, This is not possible. Classes in XWiki can have fields only of predefined, simple data types. Usually, the strategy to do what you want is like this: 1. Create the Address class, also adding an address type field. 2. In a document, use one Contact object and several Address objects. This way you gain even more flexibility. You can either use one Address object with type = personal and one with type = work (or whatever values you like), or you can accept any number of objects, and the user can select what type of address he wants, and a button add address allows him to add a new Address object. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] passing username and password with the URL
Hi all, We are using XWiki to share/develop R code. R has a source() command that can call a remote web page where the code is stored and execute it locally. We can figure out more sophisticated ways of getting R involved, but as an starting point it could be enough to be able to call restricted access XWiki URLs from local R installations with the source() command. Thus, I think that we need to send to XWiki the username and the password together with this URL. Please, could you now if this is possible and point me in the right direction? Thanks! Best regards, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] rendering pages with Groovy code
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote: Sergiu Dumitriu wrote: Probably an encoding issue. Can you check the values of: - file.encoding jvm property - xwiki.encoding in xwiki.cfg Hi Sergiu: It is easy to find the xwiki.encoding value. Here it is: xwiki.encoding=ISO-8859-1 But I am not sure about what value I must give you as file.encoding jvm property. I've not URIEncoding in the Tomcat connector, and I don't find any file.encoding thing in catalina.sh. Please, could you tell me where must I look for this value? Tomcat's web.xml reads ?xml version=1.0 encoding=ISO-8859-1?. No encoding find in catania.sh, nor in startup.sh. A simple .jsp gives us the file.encoding value as: System.getProperty(file.encoding): ANSI_X3.4-1968 Yep, that's the value I'm interested in. If you can change the tomcat settings, can you you add -Dfile.encoding=ISO-8859-1, restart tomcat and test again? OutputStreamWriter encoding is: ASCII I've not touched neither Tomcat nor XWiki encoding default configuration. Or at least I am not aware of that. But the curiouse is that this server has been working apparently fine (concerning encoding) until the last update. Was the script working correctly before the update, or you didn't try that script before? Because theoretically we didn't change anything in the groovy rendering process. I know this is not a XWiki issue, but any help will be really welcome. Thank you so much, Ricardo -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] rendering pages with Groovy code
Sergiu Dumitriu wrote: Yep, that's the value I'm interested in. If you can change the tomcat settings, can you you add -Dfile.encoding=ISO-8859-1, restart tomcat and test again? I can not do that right now, but I will add the parameter, try again and report back as soon as possible Was the script working correctly before the update, or you didn't try that script before? Because theoretically we didn't change anything in the groovy rendering process. The script has always worked fine. The problem are the question marks substituting the special characters when the page including the script is edited by a programmer. I don't know what this could mean. And, I insist, this only happens in one installation. I will try by adding the file.encoding parameter and report back ASAP. Thanks!! -- Ricardo Rodríguez Your EPEC Network ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] problems importing xwiki 0.9
Hello, While upgrading xwiki 0.9 to 1.2, we run accross this problem: 1) we copy db to a new db for upgrade 2) we fix a column according to docs (issuing an alter statement) 3) we start first time xwiki 1.2 4) we get bunch of document upgrade messages 5) we get some warnings about author/date in history 6) we upload and set xwiki skin usnig our old skin (which wasmainly the old defuat skin with some customized css) 7) we get this error: (how are we supposed to fix it?) org.apache.velocity.exception.ParseErrorException: Encountered Blog.aspan | .span a href=\..view.Main.KnowledgeBase\,\view\)\Knowledge Base/aspan | /span \r\n--\r\na href=\ at line 3, column 38 of view.Main Was expecting one of: , ... ) ... WHITESPACE ... at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:212) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95) at com.xpn.xwiki.render.XWikiVelocityRenderer.interpret(XWikiVelocityRenderer.java:60) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:247) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.interpretText(DefaultXWikiRenderingEngine.java:150) at com.xpn.xwiki.XWiki.parseContent(XWiki.java:1313) at com.xpn.xwiki.api.XWiki.parseContent(XWiki.java:554) at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1354) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1354) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:105) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:158) 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:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:673) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:362) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:283) at
Re: [xwiki-users] Deleting Class properties
Campbell, Timothy D wrote: Hello all, I have edited the fields in XWiki.ArticleClass for the users to enter data into fields rather than the Content and Extract fields. However, those fields still exist and there is no space for the deletion of the class property. Is there a function in XWiki which allows the deletion of class properties or I must I recreate the entire class/classheet/template and not include those fields. Thank you in advance for your help. Tim Campbell Hi, Deleting properties is not yet supported. You can vote for http://jira.xwiki.org/jira/browse/XWIKI-99 to get this feature implemented faster. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Help wanted on the database list class property, database tree class property and the Custom Display attribute.
Thorbjørn Konstantinovitz wrote: Hi, I am currently developing a program documentation system based on xwiki. I am able to create pages which describes programs. For each program which has to be described I programatically creates a page and populate a object with static program information. But I need to document which database files the program uses, with links to the relevant database file descriptions (a list). For that I want to use a database list class. I also want to show a call graph. for that I want to use a database tree class. But I am not able to find any documentation on these class properties. Can anyone give an example of use for each of these two properties or give pointers to relevant examples. The article http://www.theserverside.com/tt/articles/article.tss?l=XWiki on the server side were a very good introduction! But it didn't treat the property Custom Display. Are there any documentation on this property? Cheers /Thorbjørn Konstantinovitz First, a bit of introduction on DBList and DBTreeList. StaticList properties, when edited, allow the user to select one of the predefined values (or more, if the property has multiple select = true). DBList does something similar, allows the user to select one or more values from a list of values, but the list is not predefined, it is populated with values from the database. DBTreeList does the same as DBList, but also induces a pseudo-hierarchy in the option list, displaying the options as a tree. DBList and DBTreeList properties work in two ways. One is with an hql query, which allows complete flexibility on what you want to select. For DBList you select one or two columns. The first column is the list of possible values that get into the option list. The second (optional) column allows to separate the actual value that gets stored in the database, and the values that are displayed to the user. This allows, for example, to store XWiki.JohnDoe in the database, but to display Doe, John in the interface. If only one column is selected, the value displayed is the same as the value used internally. DBTreeList queries must select 3 columns. The first two are the same as for DBList, while the 3rd column defines the child-parent relations. Selected rows that have null or an empty string on the third column will be considered the roots of the tree. Rows that have a value X on the third column will be inserted as child nodes of the node with value X (the first column). The second way to define the option lists is by using the fields: XWiki Class Name, Id Field Name, Value Field Name and Parent Field Name. Using those fields, the XWiki platform constructs the following hql queries: select idprop.value, valueprop.value, parentprop.value from XWikiDocument doc, BaseObject obj, StringProperty idprop, StringProperty valueprop, StringProperty parentprop.value where obj.name = doc.name and obj.className = value entered in Class name and idprop.id.id = obj.id and idprop.id.name = value entered in Id Field Name and valueprop.id.id = obj.id and valueprop.id.name = value entered in Value Field Name and parentprop.id.id = obj.id and parentprop.id.name = value entered in Parent Field Name So, it selects from objects of a given type (XWiki Class) 3 properties (of storage type String, read bellow what this means). As a special case, you can use doc.some doc property or obj.some object property instead of property names, and the query is adapted accordingly. In the case of DBList, only 2 columns are selected, as the Parent property is not used/defined. String storage type means: - either a property of type String - or a property of type StaticList, DBList or DBTreeList with multipleSelect = false If you want to use the DBTreeList, you must model your data so that they will allow these kind of queries. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Creating a class : hHow to add tye of propertie s?
Hi, Thank you for your answer. Benoît -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Sergiu Dumitriu Envoyé : jeudi 14 février 2008 00:23 À : XWiki Users Objet : Re: [xwiki-users] Creating a class : hHow to add tye of properties? HERICHER Benoit DSIC BUA wrote: Hi, I would like to create a class Contact with a property PersonalAddress. As I guess that will have to reuse the concept of Address to manage other things , I decide to create first a class Address and then I would like to assign this type to the property PersonalAddress of the class Contact as one would do in OO Languages like Java ; but it doesn't seem possible or did I miss something? Thank you Benoît Hi, This is not possible. Classes in XWiki can have fields only of predefined, simple data types. Usually, the strategy to do what you want is like this: 1. Create the Address class, also adding an address type field. 2. In a document, use one Contact object and several Address objects. This way you gain even more flexibility. You can either use one Address object with type = personal and one with type = work (or whatever values you like), or you can accept any number of objects, and the user can select what type of address he wants, and a button add address allows him to add a new Address object. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] CamelCase
Hi Sergiu, What would be great is if instead of replying to questions you create a FAQ entry or some documentation on xwiki.org and give a link. That would allow our knowledge base to grow. This would be a great FAQ. Thanks -Vincent On Feb 14, 2008, at 12:07 AM, Sergiu Dumitriu wrote: Frantisek Kall wrote: On wikimatrix.org http://wikimatrix.org I read CamelCase is optional feature in xwiki. How can I switch it on ? 1. Extract the file radeox_markup_xwiki.properties from webapp-root/xwiki/WEB-INF/lib/xwiki-core-*.jar into webapp-root/xwiki/WEB-INF/classes/ 2. Edit /xwiki/WEB-INF/classes/radeox_markup_xwiki.properties and replace filter.link.match=\\[(.+?)\\] with filter.link.match=\\b([A-Z][a-z0-9_]*(?:[A-Z][a-z0-9_]*)+)\\b 3. Restart XWiki Now you have support for CamelCase, but the WYSIWYG editor will not be able to work with these kind of links. What I shoud do when I need translate xwiki user interface to Slovak language ? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users