Re: [xwiki-users] How to attach and deattach file by code
My solution sounds silly but it works :) Assume that the upload document is named XWiki.Upload. In this document, I change the value of the hidden field xredirect to XWiki.DoSomething. I create another document named XWiki.DoSomething, in it, write some code to deal with the file content, blah ... , finally, redirect back to XWiki.Upload. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [XE 1.2.2] Space characters trimmed in attachment names
Hello, Don't know if it's a bug or an evolution, but after migrating my xwiki to 1.2.2, when I attach a new file to a page, all spaces characters are trimmed from the name. I didn't found anything about that in Jira. For example My Doc Attached.doc gets renamed to MyDocAttached.doc. http://jira.xwiki.org/jira/browse/XWIKI-2090 http://jira.xwiki.org/jira/browse/XWIKI-2087 The use of the clearName method for attachment names is a temporary fix until the resolution of all our encoding issues. I see at least one issue coming from this : if you attach the same file it's not considered the same because it's renamed. Your existing links also link to the previous version, and it's not easy to find by end-user. And anyway you don't want the file to be renamed when attached … Yes this is a drawback of this fix. JV. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Javascript error in default xwiki
Hi, After installing the default xwiki war file, without installing any xar, WebHome page is displayed without any css style and javascript errors occur on mouse events. Errors come from the js file /xwiki/skins/albatross/xwiki.js Is this bug referenced ? Aym. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to attach and deattach file by code
Ngo Thi Hong Nga wrote: My solution sounds silly but it works :) Assume that the upload document is named XWiki.Upload. In this document, I change the value of the hidden field xredirect to XWiki.DoSomething. I create another document named XWiki.DoSomething, in it, write some code to deal with the file content, blah ... , finally, redirect back to XWiki.Upload. Thanks! -- Ricardo Rodríguez Your EPEC Network ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Upgrading a wiki-farm
Hi all, I'm going to upgrade a wiki-farm from the version 1.1RC1 to 1.2.2. Does anyone have tried to upgrade a wiki-farm? Any suggestion? I know there are explanation on how to do this on xwiki.org, I want just to know if someone has done it already. Thanks! Vito ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Query a date field?
Hi everyone, having a small problem on an HQL query (and hope someone's managed to get this working before) NOTE: $dtDateToCompare is yesturdays date, generated with groovy select obj.name from BaseObject obj, XWikiDocument doc, StringProperty propnrd where obj.className='XWiki.clickClass' and obj.name'XWiki.clickClassTemplate' and obj.name not like('%/%') and doc.fullName=obj.name and propnrd.id.id=obj.id and propnrd.id.name='clickDateAssign' and propnrd.value '${dtDateToCompare}' order by obj.name asc This works if I use the modified date property of the document (as a test); but not for a custom date property (propnrd.id.name='clickDateAssign' is a date property of the class). Anybody do something similar and can share some pointers? Using MySQL if that makes any difference ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Upgrading a wiki-farm
Hi Vito, Hi all, I'm going to upgrade a wiki-farm from the version 1.1RC1 to 1.2.2. Does anyone have tried to upgrade a wiki-farm? Any suggestion? I know there are explanation on how to do this on xwiki.org, I want just to know if someone has done it already. I've upgraded a farm from 1.1.2 to 1.2.2, it went pretty smooth. Thanks! Vito ___ 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] Upgrading a wiki-farm
Hi Jerome, thanks for the answer: I just did some testing and it seems to go smoothly also for me ;) Vito Jerome Velociter wrote: Hi Vito, Hi all, I'm going to upgrade a wiki-farm from the version 1.1RC1 to 1.2.2. Does anyone have tried to upgrade a wiki-farm? Any suggestion? I know there are explanation on how to do this on xwiki.org, I want just to know if someone has done it already. I've upgraded a farm from 1.1.2 to 1.2.2, it went pretty smooth. Thanks! Vito ___ 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 -- Vitantonio Messa +358 46 889 48 49 - [EMAIL PROTECTED] COSS - The Finnish Centre for Open Source Solutions @ Technology Centre Hermia Ltd. Hermiankatu 1, FIN-33720 Tampere, FINLAND ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Query a date field?
Hi, I don't know for sure but I suspect your problem has something to do with date format. At the time the page is rendered '${dtDateToCompare}' gets translated into a string (using toString if it's not already a string). The date format used (explicitly by you or implicitly by toString) may not match the one used by your DB. If this is the case then I see 2 solutions: * find out the date format used by your DB (a simple select on a table having a date field might do) and format the dtDateToCompare correspondingly * replace '${dtDateToCompare}' with a parameter using ? (the JDBC syntax) or :paramName (HQL syntax) and call the corresponding searchDocuments method. I hope this helps, Marius Hi everyone, having a small problem on an HQL query (and hope someone's managed to get this working before) NOTE: $dtDateToCompare is yesturdays date, generated with groovy select obj.name from BaseObject obj, XWikiDocument doc, StringProperty propnrd where obj.className='XWiki.clickClass' and obj.name'XWiki.clickClassTemplate' and obj.name not like('%/%') and doc.fullName=obj.name and propnrd.id.id=obj.id and propnrd.id.name='clickDateAssign' and propnrd.value '${dtDateToCompare}' order by obj.name asc This works if I use the modified date property of the document (as a test); but not for a custom date property (propnrd.id.name='clickDateAssign' is a date property of the class). Anybody do something similar and can share some pointers? Using MySQL if that makes any difference ___ 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
[xwiki-users] Printing sections
Hi all, I've written a macro that allows to print just one section from an xwiki-page. I don't know if someone could find it useful, anyway, here it is. --- #macro(allowPrintSection) form action=$doc.getURL() method=post input type=hidden name=pageName value=$doc.getFullName() / select name=printSection #set ($i = 0) #set ($tocData = ${doc.getTOC(2, 2, false)}) #foreach ($tocEntry in $tocData.entrySet()) #set ($i = $i+1) option value=$i$xwiki.parseContent($tocEntry.value.text)/option #end /select input type=submit class=button style=margin:auto; value=Print section/ /form #if($request.printSection) #set ($sections = $doc.getContent()) #set ($i = 0) #foreach ($section in $sections.split( 1.1 )) #if ($i == $xwiki.parseInt($request.printSection)) #set ($newContent = $section) #end #set ($i = $i+1) #end #set ($newContent = 1.1 +$newContent) #set ($newDoc = $xwiki.getDocument(Main.PRINT_tmpSectionToPrint)) #if ($newDoc == $xwiki.getNull()) #if (!$xwiki.copyDocument($request.pageName, Main.PRINT_tmpSectionToPrint)) *Error while printing section...* #end #end $newDoc.setContent($newContent) $newDoc.save() Section ready to be printed: a href=$newDoc.getURL('view', 'xpage=print')click here/a. #end #end Any ideas or suggestions are welcome! Vito -- Vitantonio Messa +358 46 889 48 49 - [EMAIL PROTECTED] COSS - The Finnish Centre for Open Source Solutions @ Technology Centre Hermia Ltd. Hermiankatu 1, FIN-33720 Tampere, FINLAND ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Printing sections
Hi Vitantonio, thanks for this snippet :-) It would be even better if you could post it on code.xwiki.org, in the code Snippet section. Thanks in advance, Guillaume On 22/02/2008, Vitantonio Messa [EMAIL PROTECTED] wrote: Hi all, I've written a macro that allows to print just one section from an xwiki-page. I don't know if someone could find it useful, anyway, here it is. --- #macro(allowPrintSection) form action=$doc.getURL() method=post input type=hidden name=pageName value=$doc.getFullName() / select name=printSection #set ($i = 0) #set ($tocData = ${doc.getTOC(2, 2, false)}) #foreach ($tocEntry in $tocData.entrySet()) #set ($i = $i+1) option value=$i$xwiki.parseContent($tocEntry.value.text)/option #end /select input type=submit class=button style=margin:auto; value=Print section/ /form #if($request.printSection) #set ($sections = $doc.getContent()) #set ($i = 0) #foreach ($section in $sections.split( 1.1 )) #if ($i == $xwiki.parseInt($request.printSection)) #set ($newContent = $section) #end #set ($i = $i+1) #end #set ($newContent = 1.1 +$newContent) #set ($newDoc = $xwiki.getDocument(Main.PRINT_tmpSectionToPrint)) #if ($newDoc == $xwiki.getNull()) #if (!$xwiki.copyDocument($request.pageName, Main.PRINT_tmpSectionToPrint)) *Error while printing section...* #end #end $newDoc.setContent($newContent) $newDoc.save() Section ready to be printed: a href=$newDoc.getURL('view', 'xpage=print')click here/a. #end #end Any ideas or suggestions are welcome! Vito -- Vitantonio Messa +358 46 889 48 49 - [EMAIL PROTECTED] COSS - The Finnish Centre for Open Source Solutions @ Technology Centre Hermia Ltd. Hermiankatu 1, FIN-33720 Tampere, FINLAND ___ 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] Latex html in editor for math formulas?
On Thu, Feb 21, 2008 at 5:07 AM, Sergiu Dumitriu [EMAIL PROTECTED] wrote: Paul Libbrecht wrote: ... http://math.etsu.edu/LaTeXMathML/LaTeXMathML.js - LaTeX = MathML converter in JavaScript. The code should be converted to Java, so that the whole process can be done in the native language for XWiki. Did someone test this as a starting point? (I've never used it) http://scenari-platform.org/svn/dev-core/trunk/Jav_EXT/com/scenari/ext/latex/ -- Axel Kramer WikiBlog: http://www.groovy-news.org/e/page/axelclk ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] New installation - XAR upload failing
I'm a first time installer, running 1.3M2 and trying to upload the XAR file. I'm getting the following error in the xwiki.log file (which, oddly, is in the tomcat base dir instead of the tomcat/logs dir). Also, when I try and create users, the form submits, but it doesn't appear to be saving because no users are listed after 'save'. I'm running on linux, MySQL 4.1 and JDK 1.6. The DB was created successfully and I was able to edit the front page. Any ideas? Should I try 1.2 instead? Thanks, -Doug ERROR lucene.IndexUpdater- invalid parameters given to add: XWiki.Import, null, {grouplist={xwiki:XWiki.XWikiGuest=[]}, fileuploadlist=[name=null, StoreLocation=/usr/local/tomcat/temp/upload_720660f3_11842ccbd27__8000_0003.tmp, size=86bytes, isFormField=true, FieldName=xredirect, name=null, StoreLocation=/usr/local/tomcat/temp/upload_720660f3_11842ccbd27__8000_0004.tmp, size=41bytes, isFormField=true, FieldName=filename, name=xwiki-enterprise-wiki-1.3-milestone-2.xar, StoreLocation=/usr/local/tomcat/temp/upload_720660f3_11842ccbd27__8000_0005.tmp, size=351930bytes, isFormField=false, FieldName=filepath], [EMAIL PROTECTED], [EMAIL PROTECTED], baseskin=albatross, [EMAIL PROTECTED], ajax=false, locale=en, doc=XWiki.Import, mainxwiki=xwiki, skin=toucan, [EMAIL PROTECTED], [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/New-installation---XAR-upload-failing-tp15641651p15641651.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] xwiki basic documentation
I don't seem to be able to find basic documentation of xwiki concepts, such as 'space', 'object'. Both of those words mean something to me, but it's not clear what they mean in the xwiki world. Does xwiki presuppose familiarity with some other body of documentation? Where can I get this reference material? Regards, Honna ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki basic documentation
On Feb 22, 2008, at 11:29 PM, Honna Segel wrote: I don't seem to be able to find basic documentation of xwiki concepts, such as 'space', 'object'. Both of those words mean something to me, but it's not clear what they mean in the xwiki world. Does xwiki presuppose familiarity with some other body of documentation? Where can I get this reference material? We don't have any glossary yet. Feel free to start one in http://dev.xwiki.org/xwiki/bin/view/Drafts/ if you want. However we do have descriptions of the terms you mention; * Check http://platform.xwiki.org/xwiki/bin/view/Features/ * And for objects , etc, see the dev guide at: http://platform.xwiki.org/xwiki/bin/view/DevGuide/ Thanks -Vincent___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users