Re: [xwiki-users] using DateTime Picker from AppWithinMinutes Application
Hi, It would be great to move the DatePicker as a simple setting in the class, though the DatePicker code itself should be modifiable to allow custom behaviors. It should be moved out of AppWithinMinutes into the XWiki core. Ludovic 2012/2/12 Eugen Colesnicov ecolesni...@gmail.com Sorry, I found answer. Need to write {{include document=AppWithinMinutes.Date/}} in a custom display field of a class property. -- View this message in context: http://xwiki.475771.n2.nabble.com/using-DateTime-Picker-from-AppWithinMinutes-Application-tp7276957p7277019.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 -- Ludovic Dubost Founder and CEO Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] IE bug with top menu
Hello Dmitry, Mailing lists does not allow attachments, so your image was dropped by the server. Could you attach the image to the jira issue so I can see it ? I am still not able to reproduce, so please give me exact steps to reproduce. Regards, Sorin B. On Sat, Feb 11, 2012 at 6:25 PM, Dmitry Bakbardin haru_mamb...@mail.ruwrote: Hi, Sorin, This bug was reproduced by many customers, they couldn't find LogOut link, that was the reason of investigation :-) I recommended to start from cache clearance, it was useless. Actually it works, all menus are in right places, but invisible. It was XWiki 3.4 on server under Centos and Tomcat. I made the same test with Windows standalone XWiki. The results you can see at image attached (not logged in). Just unpack zip, run XWiki and load default Main Page. BUT, If you will compare with LOGIN page, it works correctly somehow. To get this page working, you have to uncheck the right of unregistered users to view page and restrict access to any page regardless to rights. After logout you would see correct page (see image). IE is a mysterious creature. :-) By the way, this bug was reported also in IE 8 :-( Hope it helps, Kind regards, Dmitry 08 февраля 2012, 18:04 от Sorin Burjan sorin.bur...@xwiki.com: Hello Haru, I have tried a XE 3.4 final on Windows + IE9 and it worked. I have cleared the cache, and both compatibility mode and normal mode worked for me. I can see the logout button also. Can you give more details about your problem ? Or maybe exact steps to reproduce. Regards, Sorin B. On Wed, Feb 8, 2012 at 12:15 AM, Haru Mamburu haru_mamb...@mail.ru wrote: Actually the very fast solution is to turn on compatibility mode in IE 9. It works finally, but it's a problem still :-) 08 февраля 2012, 00:02 от Haru Mamburu haru_mamb...@mail.ru: Hi! XE 3.4. IE 9 gives interesting bug: it doesn't show top menu. It exists, even works, but invisible. So, users can't find logout button :-( http://jira.xwiki.org/browse/XWIKI-7496 Does anyone has a clue how to fix it fast? Kind regards, Dmitry ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Kind regards, Dmitry -- Kind regards, Dmitry ___ 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] Groovy script to XWiki 2.0 Syntax - constructing URLs
Good morning! I'm trying to move a simple script from XWiki 1.0 Syntax to 2.0 one. It includes this lines with which I can easily use SQL to retrieve pages and present a list of URLs to reach those pages: db2 = Sql.newInstance(jdbc:mysql://hostname/schema, ROuser, readonly, com.mysql.jdbc.Driver) List areas = db2.rows('select... println areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br) As I'm having problems to include both Velocity (for instance, to control the information panel visibility) and Groovy scripts in the same page when using 1.0 syntax, I'm trying to move it to 2.0. But using the same lines results in that exact text being displayed in the page, but not the URL showed in 1.0 syntax. Please, could you tell me how could I get the same results with XWiki 2.0 syntax? Thanks!!! I know there are a lot of different methods to get the same results within XWiki, but using SQL in this case is useful to me now as kind of probe of concept showing how easily could we link to external datasources by using XWiki. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs
On Feb 12, 2012, at 11:10 AM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: Good morning! I'm trying to move a simple script from XWiki 1.0 Syntax to 2.0 one. It includes this lines with which I can easily use SQL to retrieve pages and present a list of URLs to reach those pages: db2 = Sql.newInstance(jdbc:mysql://hostname/schema, ROuser, readonly, com.mysql.jdbc.Driver) List areas = db2.rows('select... println areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br) This will generate HTML so you'll need to wrap it in the {{html}} macro. {{groovy}} … println {{html}}your html here{{/html}} {{/groovy}} Hope it helps, -Vincent As I'm having problems to include both Velocity (for instance, to control the information panel visibility) and Groovy scripts in the same page when using 1.0 syntax, I'm trying to move it to 2.0. But using the same lines results in that exact text being displayed in the page, but not the URL showed in 1.0 syntax. Please, could you tell me how could I get the same results with XWiki 2.0 syntax? Thanks!!! I know there are a lot of different methods to get the same results within XWiki, but using SQL in this case is useful to me now as kind of probe of concept showing how easily could we link to external datasources by using XWiki. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ 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] Groovy script to XWiki 2.0 Syntax - constructing URLs
Thanks! See below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Vincent Massol [vinc...@massol.net] Sent: 12 February 2012 11:34 To: XWiki Users Cc: Lista Garcia, Isabel Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs On Feb 12, 2012, at 11:10 AM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: Good morning! I'm trying to move a simple script from XWiki 1.0 Syntax to 2.0 one. It includes this lines with which I can easily use SQL to retrieve pages and present a list of URLs to reach those pages: db2 = Sql.newInstance(jdbc:mysql://hostname/schema, ROuser, readonly, com.mysql.jdbc.Driver) List areas = db2.rows('select... println areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br) This will generate HTML so you'll need to wrap it in the {{html}} macro. {{groovy}} … println {{html}}your html here{{/html}} {{/groovy}} I've already tried this to now avail. For instance, these alternatives failed giving a Failed to execute the [groovy] macro error message; all of them pointed to the first character of the nested html macro as the reason for the failure: println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} BTW: still Running XWiki Enterprise 2.4.30451 here... must this html nested macro be supported in this release? Thanks!!! Hope it helps, -Vincent As I'm having problems to include both Velocity (for instance, to control the information panel visibility) and Groovy scripts in the same page when using 1.0 syntax, I'm trying to move it to 2.0. But using the same lines results in that exact text being displayed in the page, but not the URL showed in 1.0 syntax. Please, could you tell me how could I get the same results with XWiki 2.0 syntax? Thanks!!! I know there are a lot of different methods to get the same results within XWiki, but using SQL in this case is useful to me now as kind of probe of concept showing how easily could we link to external datasources by using XWiki. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ 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 Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs
Please, see below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Rodriguez Fernandez, Ricardo Julio Sent: 12 February 2012 11:49 To: users@xwiki.org Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs Thanks! See below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Vincent Massol [vinc...@massol.net] Sent: 12 February 2012 11:34 To: XWiki Users Cc: Lista Garcia, Isabel Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs On Feb 12, 2012, at 11:10 AM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: Good morning! I'm trying to move a simple script from XWiki 1.0 Syntax to 2.0 one. It includes this lines with which I can easily use SQL to retrieve pages and present a list of URLs to reach those pages: db2 = Sql.newInstance(jdbc:mysql://hostname/schema, ROuser, readonly, com.mysql.jdbc.Driver) List areas = db2.rows('select... println areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br) This will generate HTML so you'll need to wrap it in the {{html}} macro. {{groovy}} … println {{html}}your html here{{/html}} {{/groovy}} I've already tried this to now avail. For instance, these alternatives failed giving a Failed to execute the [groovy] macro error message; all of them pointed to the first character of the nested html macro as the reason for the failure: println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} BTW: still Running XWiki Enterprise 2.4.30451 here... must this html nested macro be supported in this release? Thanks!!! More on this issue: this is, for sure, a clear error message for anybody mastering Groovy... Caused by: javax.script.ScriptException: startup failed: Script167.groovy: 4: Ambiguous expression could be either a parameterless closure expression or an isolated open code block; solution: Add an explicit closure parameter list, e.g. {it - ...}, or force it to be treated as an open block by giving it a label, e.g. L:{...} @ line 4, column 2. {{html}} ^ Please, how this must be applied to the way Vicent is proposing to nest the XWiki html macro? println {{html}}your html here{{/html}} Thanks!!! Hope it helps, -Vincent As I'm having problems to include both Velocity (for instance, to control the information panel visibility) and Groovy scripts in the same page when using 1.0 syntax, I'm trying to move it to 2.0. But using the same lines results in that exact text being displayed in the page, but not the URL showed in 1.0 syntax. Please, could you tell me how could I get the same results with XWiki 2.0 syntax? Thanks!!! I know there are a lot of different methods to get the same results within XWiki, but using SQL in this case is useful to me now as kind of probe of concept showing how easily could we link to external datasources by using XWiki. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ 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 Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida
[xwiki-users] on XWiki.XWikiGroupSheet
Hi! Still working with XWiki Enterprise 2.4.30451 here. When listing group members using XWiki.XWikiGroupSheet, if the member is a user and its document has a title, the list shows the title as URL. It the member is another group, the list shows the name of the document independently of it has title or hasn't. Feel free to check this to ilustrate what we are seing here... http://atrium_km.idisantiago.es/bin/XWiki/XWikiIDISAreaOncology Please, how must we modify XWiki.XWikiGroupSheet to force it to always show the title of a document (user or another group) included in a given group? Thanks for your help! Ricardo -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs
On 02/12/2012 06:00 AM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: Please, see below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Rodriguez Fernandez, Ricardo Julio Sent: 12 February 2012 11:49 To: users@xwiki.org Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs Thanks! See below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Vincent Massol [vinc...@massol.net] Sent: 12 February 2012 11:34 To: XWiki Users Cc: Lista Garcia, Isabel Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs On Feb 12, 2012, at 11:10 AM,ricardo.julio.rodriguez.fernan...@sergas.es wrote: Good morning! I'm trying to move a simple script from XWiki 1.0 Syntax to 2.0 one. It includes this lines with which I can easily use SQL to retrieve pages and present a list of URLs to reach those pages: db2 = Sql.newInstance(jdbc:mysql://hostname/schema, ROuser, readonly, com.mysql.jdbc.Driver) List areas = db2.rows('select... println areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br) This will generate HTML so you'll need to wrap it in the {{html}} macro. {{groovy}} … println {{html}}your html here{{/html}} {{/groovy}} I've already tried this to now avail. For instance, these alternatives failed giving a Failed to execute the [groovy] macro error message; all of them pointed to the first character of the nested html macro as the reason for the failure: println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} BTW: still Running XWiki Enterprise 2.4.30451 here... must this html nested macro be supported in this release? Thanks!!! More on this issue: this is, for sure, a clear error message for anybody mastering Groovy... Caused by: javax.script.ScriptException: startup failed: Script167.groovy: 4: Ambiguous expression could be either a parameterless closure expression or an isolated open code block; solution: Add an explicit closure parameter list, e.g. {it - ...}, or force it to be treated as an open block by giving it a label, e.g. L:{...} @ line 4, column 2. {{html}} ^ Please, how this must be applied to the way Vicent is proposing to nest the XWiki html macro? println {{html}}your html here{{/html}} The problem is with nested quotes IMHO. Try something simpler: println {{html}} println the rest of your code println {{/html}} Thanks!!! Hope it helps, -Vincent As I'm having problems to include both Velocity (for instance, to control the information panel visibility) and Groovy scripts in the same page when using 1.0 syntax, I'm trying to move it to 2.0. But using the same lines results in that exact text being displayed in the page, but not the URL showed in 1.0 syntax. Please, could you tell me how could I get the same results with XWiki 2.0 syntax? Thanks!!! I know there are a lot of different methods to get the same results within XWiki, but using SQL in this case is useful to me now as kind of probe of concept showing how easily could we link to external datasources by using XWiki. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs
From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Sergiu Dumitriu [ser...@xwiki.com] Sent: 12 February 2012 20:38 To: XWiki Users Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs On 02/12/2012 06:00 AM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: Please, see below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Rodriguez Fernandez, Ricardo Julio Sent: 12 February 2012 11:49 To: users@xwiki.org Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs Thanks! See below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Vincent Massol [vinc...@massol.net] Sent: 12 February 2012 11:34 To: XWiki Users Cc: Lista Garcia, Isabel Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs On Feb 12, 2012, at 11:10 AM,ricardo.julio.rodriguez.fernan...@sergas.es wrote: Good morning! I'm trying to move a simple script from XWiki 1.0 Syntax to 2.0 one. It includes this lines with which I can easily use SQL to retrieve pages and present a list of URLs to reach those pages: db2 = Sql.newInstance(jdbc:mysql://hostname/schema, ROuser, readonly, com.mysql.jdbc.Driver) List areas = db2.rows('select... println areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br) This will generate HTML so you'll need to wrap it in the {{html}} macro. {{groovy}} … println {{html}}your html here{{/html}} {{/groovy}} I've already tried this to now avail. For instance, these alternatives failed giving a Failed to execute the [groovy] macro error message; all of them pointed to the first character of the nested html macro as the reason for the failure: println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} BTW: still Running XWiki Enterprise 2.4.30451 here... must this html nested macro be supported in this release? Thanks!!! More on this issue: this is, for sure, a clear error message for anybody mastering Groovy... Caused by: javax.script.ScriptException: startup failed: Script167.groovy: 4: Ambiguous expression could be either a parameterless closure expression or an isolated open code block; solution: Add an explicit closure parameter list, e.g. {it - ...}, or force it to be treated as an open block by giving it a label, e.g. L:{...} @ line 4, column 2. {{html}} ^ Please, how this must be applied to the way Vicent is proposing to nest the XWiki html macro? println {{html}}your html here{{/html}} The problem is with nested quotes IMHO. Try something simpler: println {{html}} println the rest of your code println {{/html}} Done! Thank you very much! Could it be useful to make some note about this behavior in XWiki Platform XWiki Syntaxes page? http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HMacros Thanks! Thanks!!! Hope it helps, -Vincent As I'm having problems to include both Velocity (for instance, to control the information panel visibility) and Groovy scripts in the same page when using 1.0 syntax, I'm trying to move it to 2.0. But using the same lines results in that exact text being displayed in the page, but not the URL showed in 1.0 syntax. Please, could you tell me how could I get the same results with XWiki 2.0 syntax? Thanks!!! I know there are a lot of different methods to get the same results within XWiki, but using SQL in this case is useful to me now as kind of probe of concept showing how easily could we link to external datasources by using XWiki. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more
[xwiki-users] width=120
Hello fellow xwiki users, we discovered recently the usage of the width parameter when delivering a picture from an xwiki document attachment. Surprisingly this is available in our production server, based on the grumpy xwiki 1.5, but has not been used in the UI of Curriki which has, however, been made by a team of XWiki SàRL originally. - can someone describe me how this feature is working? - is the resulting downscaled image cached in file or in ram? - has there been a different implementation between the current xwiki (e.g. 3.4) and 1.5? - except for the CPU hogging of computing the downscaled version, is there any reason not to use this feature? (e.g. RAM overloading?). thanks in advance Paul ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs
On Feb 12, 2012, at 11:33 PM, ricardo.julio.rodriguez.fernan...@sergas.es ricardo.julio.rodriguez.fernan...@sergas.es wrote: From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Sergiu Dumitriu [ser...@xwiki.com] Sent: 12 February 2012 20:38 To: XWiki Users Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs On 02/12/2012 06:00 AM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: Please, see below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Rodriguez Fernandez, Ricardo Julio Sent: 12 February 2012 11:49 To: users@xwiki.org Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs Thanks! See below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Vincent Massol [vinc...@massol.net] Sent: 12 February 2012 11:34 To: XWiki Users Cc: Lista Garcia, Isabel Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs On Feb 12, 2012, at 11:10 AM,ricardo.julio.rodriguez.fernan...@sergas.es wrote: Good morning! I'm trying to move a simple script from XWiki 1.0 Syntax to 2.0 one. It includes this lines with which I can easily use SQL to retrieve pages and present a list of URLs to reach those pages: db2 = Sql.newInstance(jdbc:mysql://hostname/schema, ROuser, readonly, com.mysql.jdbc.Driver) List areas = db2.rows('select... println areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br) This will generate HTML so you'll need to wrap it in the {{html}} macro. {{groovy}} … println {{html}}your html here{{/html}} {{/groovy}} I've already tried this to now avail. For instance, these alternatives failed giving a Failed to execute the [groovy] macro error message; all of them pointed to the first character of the nested html macro as the reason for the failure: println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} BTW: still Running XWiki Enterprise 2.4.30451 here... must this html nested macro be supported in this release? Thanks!!! More on this issue: this is, for sure, a clear error message for anybody mastering Groovy... Caused by: javax.script.ScriptException: startup failed: Script167.groovy: 4: Ambiguous expression could be either a parameterless closure expression or an isolated open code block; solution: Add an explicit closure parameter list, e.g. {it - ...}, or force it to be treated as an open block by giving it a label, e.g. L:{...} @ line 4, column 2. {{html}} ^ Please, how this must be applied to the way Vicent is proposing to nest the XWiki html macro? println {{html}}your html here{{/html}} The problem is with nested quotes IMHO. Try something simpler: println {{html}} println the rest of your code println {{/html}} Done! Thank you very much! Could it be useful to make some note about this behavior in XWiki Platform XWiki Syntaxes page? http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HMacros Note about what? There's no special behavior here. In groovy if you wish to use GStrings you need to use ${}…. For example: println ${myvar} Thanks -Vincent Thanks! Thanks!!! Hope it helps, -Vincent As I'm having problems to include both Velocity (for instance, to control the information panel visibility) and Groovy scripts in the same page when using 1.0 syntax, I'm trying to move it to 2.0. But using the same lines results in that exact text being displayed in the page, but not the URL showed in 1.0 syntax. Please, could you tell me how could I get the same results with XWiki 2.0 syntax? Thanks!!! I know there are a lot of different methods to get the same results within XWiki, but using SQL in this case is useful to me now as kind of probe of concept showing how easily could we link to external datasources by using XWiki. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs
From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Vincent Massol [vinc...@massol.net] Sent: 13 February 2012 00:11 To: XWiki Users Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs On Feb 12, 2012, at 11:33 PM, ricardo.julio.rodriguez.fernan...@sergas.es ricardo.julio.rodriguez.fernan...@sergas.es wrote: From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Sergiu Dumitriu [ser...@xwiki.com] Sent: 12 February 2012 20:38 To: XWiki Users Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs On 02/12/2012 06:00 AM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: Please, see below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Rodriguez Fernandez, Ricardo Julio Sent: 12 February 2012 11:49 To: users@xwiki.org Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs Thanks! See below. -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Vincent Massol [vinc...@massol.net] Sent: 12 February 2012 11:34 To: XWiki Users Cc: Lista Garcia, Isabel Subject: Re: [xwiki-users] Groovy script to XWiki 2.0 Syntax - constructing URLs On Feb 12, 2012, at 11:10 AM,ricardo.julio.rodriguez.fernan...@sergas.es wrote: Good morning! I'm trying to move a simple script from XWiki 1.0 Syntax to 2.0 one. It includes this lines with which I can easily use SQL to retrieve pages and present a list of URLs to reach those pages: db2 = Sql.newInstance(jdbc:mysql://hostname/schema, ROuser, readonly, com.mysql.jdbc.Driver) List areas = db2.rows('select... println areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br) This will generate HTML so you'll need to wrap it in the {{html}} macro. {{groovy}} … println {{html}}your html here{{/html}} {{/groovy}} I've already tried this to now avail. For instance, these alternatives failed giving a Failed to execute the [groovy] macro error message; all of them pointed to the first character of the nested html macro as the reason for the failure: println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} println {{html}}areas.collect{a href='../XWiki/${it.XWD_NAME}'${it.XWD_TITLE}/a}.join(br){{/html}} BTW: still Running XWiki Enterprise 2.4.30451 here... must this html nested macro be supported in this release? Thanks!!! More on this issue: this is, for sure, a clear error message for anybody mastering Groovy... Caused by: javax.script.ScriptException: startup failed: Script167.groovy: 4: Ambiguous expression could be either a parameterless closure expression or an isolated open code block; solution: Add an explicit closure parameter list, e.g. {it - ...}, or force it to be treated as an open block by giving it a label, e.g. L:{...} @ line 4, column 2. {{html}} ^ Please, how this must be applied to the way Vicent is proposing to nest the XWiki html macro? println {{html}}your html here{{/html}} The problem is with nested quotes IMHO. Try something simpler: println {{html}} println the rest of your code println {{/html}} Done! Thank you very much! Could it be useful to make some note about this behavior in XWiki Platform XWiki Syntaxes page? http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HMacros Note about what? There's no special behavior here. In groovy if you wish to use GStrings you need to use ${}…. For example: println ${myvar} Thanks -Vincent About the solution provided by Sergiu about how to nest a html macro within a Groovy one in XWiki 2.0 Syntax. Even though there is no special behavior here, I think it could be useful for few skilled people like me to find it there. Perhaps just providing an example. Thanks! Thanks! Thanks!!! Hope it helps, -Vincent As I'm having problems to include both Velocity (for instance, to control the information panel visibility) and Groovy scripts in the same page when using 1.0 syntax, I'm trying to move it to 2.0. But using the same lines results in that exact text being displayed in the page, but not the URL showed in 1.0 syntax. Please, could you tell me how could I get the same results with XWiki 2.0 syntax? Thanks!!! I know there are a lot of different methods to get the same results within XWiki, but using SQL in this case is useful to me now as kind of probe of concept
[xwiki-users] Localization configuration in xwiki?
i went through http://platform.xwiki.org/xwiki/bin/view/Features/I18N. Basically i want to set the set the language of my wiki as per the value of paramter language(as explained about appending the language=zz in in the link ) but it only convert the label language not the acyual content. For example i created the page Mypage and put the content as This is my first page(default language is english). But now if i change the default language to french only lablels like comments (to commentaires), history(to historique), Add(to Creer) get changed not the page name and content inside it. Still i see the contant as This is my first page.Though i was expecting it in french. How to configure so that we can change the page name and its content too when changing the default language? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Localization configuration in xwiki?
Good morning! From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of mohit gupta [motgu...@gmail.com] Sent: 13 February 2012 07:37 To: XWiki Users Subject: [xwiki-users] Localization configuration in xwiki? i went through http://platform.xwiki.org/xwiki/bin/view/Features/I18N. Basically i want to set the set the language of my wiki as per the value of paramter language(as explained about appending the language=zz in in the link ) but it only convert the label language not the acyual content. For example i created the page Mypage and put the content as This is my first page(default language is english). But now if i change the default language to french only lablels like comments (to commentaires), history(to historique), Add(to Creer) get changed not the page name and content inside it. Still i see the contant as This is my first page.Though i was expecting it in french. How to configure so that we can change the page name and its content too when changing the default language? Well, XWiki is magic, but not so magic! You does need to translate the content onf your page on your own. To the best of my understanding there is not yet an utility to do that job inside XWiki. 1. Go to preferences and, under General, set Multi Lingual to YES 2. In Languages, list the languages you are ready to translate all or some of your pages. Something like this... en, es, gl, fr 3. Now, when you edit a page, you have a new panel available named Document Translation. It will guide you throug the work done and the work to be done: existing translations, default language and translate into any language option. XWiki will show you a page in your prefered language and, if this translation is not available, will show the available ones in the order you have set in Languages parameter. HTH! Ricardo -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki 3.4, error when exporting PDF
I try to generate PDF from XWiki 3.4. The installation was made from scratch, and imported the documents via XARs from XWiki 3.0.3. From wiki the error shows as follows: *Detailed information: * *Error number 11015 in 11: Exception while exporting Wrapped Exception: Error number 12002 in 12: Exception while exporting pdf Wrapped Exception: .fop (Permission denied) com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while exporting Wrapped Exception: Error number 12002 in 12: Exception while exporting pdf Wrapped Exception: .fop (Permission denied) at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:72) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:231) 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:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: com.xpn.xwiki.XWikiException: Error number 12002 in 12: Exception while exporting pdf Wrapped Exception: .fop (Permission denied) at com.xpn.xwiki.pdf.impl.PdfExportImpl.createException(PdfExportImpl.java:699) at com.xpn.xwiki.pdf.impl.PdfExportImpl.renderXSLFO(PdfExportImpl.java:468) at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHTML(PdfExportImpl.java:402) at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:298) at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:279) at com.xpn.xwiki.web.ExportAction.export(ExportAction.java:209)
Re: [xwiki-users] Localization configuration in xwiki?
Thanks Ricardo for reply. I did the same procedure as you suggested( and same is mentioned in the link i earlier mentioned.) But as i edit the page and mention the default language to* fr* instead of *en* and do save and view, sill i can see the page name and page content in english though labels like comments,history,space,add gets converted to french. Want to know is page/space contentent translation is not supported in wiki. FYI content is just *This is my first page. *As per my understanding If it content translation was supported, this should have been converted to french as its a very simple line to convert On Mon, Feb 13, 2012 at 1:03 PM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: Good morning! From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of mohit gupta [motgu...@gmail.com] Sent: 13 February 2012 07:37 To: XWiki Users Subject: [xwiki-users] Localization configuration in xwiki? i went through http://platform.xwiki.org/xwiki/bin/view/Features/I18N. Basically i want to set the set the language of my wiki as per the value of paramter language(as explained about appending the language=zz in in the link ) but it only convert the label language not the acyual content. For example i created the page Mypage and put the content as This is my first page(default language is english). But now if i change the default language to french only lablels like comments (to commentaires), history(to historique), Add(to Creer) get changed not the page name and content inside it. Still i see the contant as This is my first page.Though i was expecting it in french. How to configure so that we can change the page name and its content too when changing the default language? Well, XWiki is magic, but not so magic! You does need to translate the content onf your page on your own. To the best of my understanding there is not yet an utility to do that job inside XWiki. 1. Go to preferences and, under General, set Multi Lingual to YES 2. In Languages, list the languages you are ready to translate all or some of your pages. Something like this... en, es, gl, fr 3. Now, when you edit a page, you have a new panel available named Document Translation. It will guide you throug the work done and the work to be done: existing translations, default language and translate into any language option. XWiki will show you a page in your prefered language and, if this translation is not available, will show the available ones in the order you have set in Languages parameter. HTH! Ricardo -- Ricardo Rodríguez Research Management and Promotion Technician Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ 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