Re: [xwiki-users] Method that returns list of groups for a page
Caleb and the XWiki community, Thanks for the response! I wasn't actually aware that this method could take groups as parameters, but if you're right, then it really might solve our problem! However, given the number of groups that we have on xwiki, it may prove a little tedious. Are there any methods that perform these functions: xwiki.getGroupsWhoHaveAccessToAGivenPage(view,edit, etc,$docname) or a context method: context.getGroupsWhoHaveAccessToThisPage(view, edit, etc) that would allow us to get a list of users back? I haven't heard of a method in xwiki that actually returns an array or list, so I may just be hoping for too much, but if anyone can think of a way to implement this, then it would be fabulous. Thanks! Felix - Original Message From: Caleb James DeLisle calebdeli...@lavabit.com To: XWiki Users users@xwiki.org Sent: Wed, February 17, 2010 1:58:21 AM Subject: Re: [xwiki-users] Method that returns list of groups for a page Hello Felix, I think you're looking for: $xwiki.hasAccessLevel(edit, XWiki.SomeUser, Main.DocumentInQuestion)) see: http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwiki/api/XWiki.html#hasAccessLevel(java.lang.String,%20java.lang.String,%20java.lang.String) It says users, but I think you can use a group name instead. Caleb Meng Wu wrote: Hey all, I am trying to find a method that can return a list of groups that have a given access right to a given page. Is there a method(s) that allow me to do that? I'm aware that you can create an object of AccessRights onto a given page and filter in groups and users that have access rights to a given page, but only admins can see that. I need to generate a list of groups that have granted access so that when an unregistered user tries to log onto a page that he doesn't have access to, a list will be generated so that he can ask for membership to those groups. Thank you, Felix Wu ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Suppress DocTitle
Hi, I am about to set up a glossar. There is a page for each letter. For this kind of page I would like to suppress the display of the standard doc title. The page itself show the letter. Is there a way to do so? - letting the doc title empty is to poor. This may fail at further places - putting the glossar in an own space and supplying an own stylesheet looks complicated Any other ideas? Stefan Bachert __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] german translations
Some of the transaction were very poor, ungrammatically and wrong in panel wizard e.g WIEDERRUFEN means call again very likely the intent was to offer cancel which can be translated as WIDERRUFEN (means revoke, what i have done was wrong) (a better and more usual translation is Abbrechen) (WIEDER = again, WIDER = against, anti, contra, RUFEN = call, shout) Is there a possibility to propose translations? Stefan Bachert __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to get the creation date of a document
Thanks! I just got it. And to format the dato to be dd-mm-? Francisco -Mensaje original- De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de Marius Dumitru Florea Enviado el: miércoles, 17 de febrero de 2010 8:37 Para: XWiki Users Asunto: Re: [xwiki-users] How to get the creation date of a document Hi Hernández, Hernández Cuchí wrote: Hello, I am rewriting the todo example list to be suitable for my company. I would like to show in the list the date of creation of the documents. How can i get it? See http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki-core-2.2-javadoc.jar/com/xpn/xwiki/api/Document.html#getCreationDate%28%29 The code is something like: table id=todoTable class=grid sortable filterable doOddEven cellpadding=0 cellspacing=0 border=0 tr class=sortHeader th class=unsortable selectFilterFecha/th thResumen/th thStatus/th thPersona/th thPestaña/th th class=unsortable selectFilterDescripcion/th /tr #foreach ($todo in $todos) tr #set ($todoDoc = $xwiki.getDocument($todo)) #set ($todoObj = $todoDoc.getObject(XWiki.TodoClass)) td[$todoObj.TargetDate$todo]/td td[$todoObj.Resumen$todo]/td td[$todoObj.Status$todo]/td td[$todoObj.Persona$todo]/td td[$todoObj.Pestana$todo]/td td$todoObj.Descripcion/td /tr #end /table So get from the todoobj the creation date. You can't get it from the object, afaik, but from the document: $todoDoc.creationDate Hope this helps, Marius Regards, Francisco -- Francisco Hernández Cuchí Jefe de Servicios Sistemas de Información OFICINA ESPAÑOLA DE PATENTES Y MARCAS C\ Paseo de la Castella 75 tlf: 913496844 mail: francisco.hernan...@oepm.es mailto:francisco.hernan...@oepm.es ** IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente para el destinatario/s. Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el emisor immediatamente y no difunda su contenido a nadie ni haga copias. *** Este correo ha sido escaneado de virus y contenido malicioso *** ** ___ 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 ** IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente para el destinatario/s. Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el emisor immediatamente y no difunda su contenido a nadie ni haga copias. *** Este correo ha sido escaneado de virus y contenido malicioso *** ** ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] german translations
On Feb 17, 2010, at 10:16 AM, stefan bachert wrote: Some of the transaction were very poor, ungrammatically and wrong in panel wizard e.g WIEDERRUFEN means call again very likely the intent was to offer cancel which can be translated as WIDERRUFEN (means revoke, what i have done was wrong) (a better and more usual translation is Abbrechen) (WIEDER = again, WIDER = against, anti, contra, RUFEN = call, shout) Is there a possibility to propose translations? yes, definitely, please go to http://l10n.xwiki.org Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panels
Hi Stefan, Yes you can. In my case, based on a user, its group and its rights, i display different links and pictures. It's easy to do in the source of the panel that you want to customize Ex: #if($xwiki.exists(BankingLexicon.WebHome)) div style=margin-bottom: ${marginbottom}px{image:lexicon.png|align=absmiddle|document=Panels.QuickLinks}nbsp;nbsp;[Banking lexiconBankingLexicon.WebHome]/div #end #if($xwiki.getUser().isUserInGroup(XWiki.GlobusAstreintes) $xwiki.exists(Astreintes.WebHome)) div style=margin-bottom: ${marginbottom}px{image:astreintes.png|align=absmiddle|document=Panels.QuickLinks}nbsp;nbsp;[AstreintesAstreintes.WebHome]/div #end You can also display or not a panel based on test : #if ($xwiki.hasAdminRights()) #panelheader('Administrate') #set($marginbottom=3) div style=margin-bottom: ${marginbottom}px{image:new.png|align=absmiddle|document=Panels.Administrate}nbsp;nbsp;[Create new page/spacePanels.NewPage]/div #panelfooter() #end If the user does not have admin rights, nothing will be displayed Christophe Périnaud Windows Server 2003 SP2 in a VMWare instance Oracle 10g Java 1.6.0_12 Xwiki 2.0.3 from the pack Jetty/HSQL -Message d'origine- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de stefan bachert Envoyé : mercredi 17 février 2010 10:05 À : users@xwiki.org Objet : [xwiki-users] Panels Is there a way to set panels different per user capability? Stefan Bachert __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users This e-mail is intended only for the addressee named above. It does not bind the sender, except in the case of an existing written convention with the addressee. This e-mail may contain material that is confidential and privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender and delete all copies. While reasonable precautions have been taken to ensure that this e-mail and any attachments are free from any computer virus or similar defect, no liability will be accepted in that respect. Anyone accessing this e-mail must take their own precautions as to security and virus protection. KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg B 6395, T (352) 47 97 1 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] [ANN] XWiki Enterprise and XWiki Enterprise Manager 2.2 Released
The XWiki development team is pleased to announce the release of XWiki Enterprise and XWiki Enterprise Manager 2.2. Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download This release contains many important UI improvements of existing features (xar import, user registration, comments, etc.), and introduces the new Model API starting with a new EntityReference and related tools to remove all String manipulations around documents and attachment names. Changes from XWiki Enterprise 2.1.2: * New XAR Import UI * UI for Deleted documents attachments * New Profile WatchList UI * New Registration page, new CAPTCHA implementation * New Menu in Edit mode * Comments UI improvements o Preview comment o Edit comment * WYSIWYG and Rendering improvements * General UI improvements * Contextual wiki macros * New Model module with Reference implementation * Development improvements * Office import improvements * Blog improvement * Dependencies upgrade o Upgraded to Groovy 1.7 o Upgrade to GWT 2.0.0 * New zh_TW translation * New user profile pages are created in XWiki Syntax 2.0 * Many bugfixes For more information see the Release notes at: http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise22 and http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM22 Thanks -The XWiki dev team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] german translations
On Wed, Feb 17, 2010 at 10:16, stefan bachert stefanbach...@yahoo.de wrote: Some of the transaction were very poor, ungrammatically and wrong in panel wizard e.g WIEDERRUFEN means call again very likely the intent was to offer cancel which can be translated as WIDERRUFEN (means revoke, what i have done was wrong) (a better and more usual translation is Abbrechen) (WIEDER = again, WIDER = against, anti, contra, RUFEN = call, shout) Is there a possibility to propose translations? All translations comes from an XWiki application on http://l10n.xwiki.com and are provided by contributors generally. Before each release we include translations coming from l10n wiki. Great to have more people that want to participate :) Stefan Bachert __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to get the creation date of a document
Hi, 2010/2/17 Hernández Cuchí, Francisco Ricardo francisco.hernan...@oepm.es Thanks! I just got it. And to format the dato to be dd-mm-? $xwiki.formatDate($todoDoc.creationDate, 'dd-MM-') or something like that, you can check the API. Guillaume Francisco -Mensaje original- De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de Marius Dumitru Florea Enviado el: miércoles, 17 de febrero de 2010 8:37 Para: XWiki Users Asunto: Re: [xwiki-users] How to get the creation date of a document Hi Hernández, Hernández Cuchí wrote: Hello, I am rewriting the todo example list to be suitable for my company. I would like to show in the list the date of creation of the documents. How can i get it? See http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki-core-2.2-javadoc.jar/com/xpn/xwiki/api/Document.html#getCreationDate%28%29 The code is something like: table id=todoTable class=grid sortable filterable doOddEven cellpadding=0 cellspacing=0 border=0 tr class=sortHeader th class=unsortable selectFilterFecha/th thResumen/th thStatus/th thPersona/th thPestaña/th th class=unsortable selectFilterDescripcion/th /tr #foreach ($todo in $todos) tr #set ($todoDoc = $xwiki.getDocument($todo)) #set ($todoObj = $todoDoc.getObject(XWiki.TodoClass)) td[$todoObj.TargetDate$todo]/td td[$todoObj.Resumen$todo]/td td[$todoObj.Status$todo]/td td[$todoObj.Persona$todo]/td td[$todoObj.Pestana$todo]/td td$todoObj.Descripcion/td /tr #end /table So get from the todoobj the creation date. You can't get it from the object, afaik, but from the document: $todoDoc.creationDate Hope this helps, Marius Regards, Francisco -- Francisco Hernández Cuchí Jefe de Servicios Sistemas de Información OFICINA ESPAÑOLA DE PATENTES Y MARCAS C\ Paseo de la Castella 75 tlf: 913496844 mail: francisco.hernan...@oepm.es mailto:francisco.hernan...@oepm.es ** IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente para el destinatario/s. Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el emisor immediatamente y no difunda su contenido a nadie ni haga copias. *** Este correo ha sido escaneado de virus y contenido malicioso *** ** ___ 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 ** IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente para el destinatario/s. Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el emisor immediatamente y no difunda su contenido a nadie ni haga copias. *** Este correo ha sido escaneado de virus y contenido malicioso *** ** ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] german translations
On 02/17/2010 10:21 AM, Vincent Massol wrote: On Feb 17, 2010, at 10:16 AM, stefan bachert wrote: Some of the transaction were very poor, ungrammatically and wrong in panel wizard e.g WIEDERRUFEN means call again very likely the intent was to offer cancel which can be translated as WIDERRUFEN (means revoke, what i have done was wrong) (a better and more usual translation is Abbrechen) (WIEDER = again, WIDER = against, anti, contra, RUFEN = call, shout) Is there a possibility to propose translations? yes, definitely, please go to http://l10n.xwiki.org Since none of the developers speaks german fluently (or many other languages), we rely on the community to provide good enough translations. I'm sure there are mistakes in our translations, but we're counting on other users to step in and correct at least some of them. The translation process is open. Thanks. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panels
On 02/17/2010 10:34 AM, PERINAUD Christophe wrote: Hi Stefan, Yes you can. In my case, based on a user, its group and its rights, i display different links and pictures. It's easy to do in the source of the panel that you want to customize Ex: #if($xwiki.exists(BankingLexicon.WebHome)) div style=margin-bottom: ${marginbottom}px{image:lexicon.png|align=absmiddle|document=Panels.QuickLinks}nbsp;nbsp;[Banking lexiconBankingLexicon.WebHome]/div #end #if($xwiki.getUser().isUserInGroup(XWiki.GlobusAstreintes) $xwiki.exists(Astreintes.WebHome)) div style=margin-bottom: ${marginbottom}px{image:astreintes.png|align=absmiddle|document=Panels.QuickLinks}nbsp;nbsp;[AstreintesAstreintes.WebHome]/div #end You can also display or not a panel based on test : #if ($xwiki.hasAdminRights()) #panelheader('Administrate') #set($marginbottom=3) div style=margin-bottom: ${marginbottom}px{image:new.png|align=absmiddle|document=Panels.Administrate}nbsp;nbsp;[Create new page/spacePanels.NewPage]/div #panelfooter() #end If the user does not have admin rights, nothing will be displayed Small clarification: all this is inside the panel, as it allows velocity code to be written in it. Any API method offered by XWiki can be used. -Message d'origine- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de stefan bachert Envoyé : mercredi 17 février 2010 10:05 À : users@xwiki.org Objet : [xwiki-users] Panels Is there a way to set panels different per user capability? Stefan Bachert -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Suppress DocTitle
On 02/17/2010 09:28 AM, stefan bachert wrote: Hi, I am about to set up a glossar. There is a page for each letter. For this kind of page I would like to suppress the display of the standard doc title. The page itself show the letter. Is there a way to do so? - letting the doc title empty is to poor. This may fail at further places - putting the glossar in an own space and supplying an own stylesheet looks complicated Any other ideas? If you're using a recent version of XE, you can put the same title both as the document title and as a heading inside the content (level1 or level2 only). -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to get the creation date of a document
Thanks for all, The last problem I have, it's that in the versión i am using actually 1.7.1, when I use the following code: #set ($hql = , BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.TodoClass' and obj.name'XWiki.TodoClassTemplate' order by doc.date asc ) I get an error. Also with the example queries. I think it could be a problema of the obsolete versión. I would like to upgrade, but I have the problem that the hsql database is really huge (i began using the exampleand kept on). And I do not know how to upgrade the database schema to a xwiki 2.x that I have in Oracle. If the tables are not the same, then the only posibility is to do it through xar files, but i get constantly java heap errors. Regards and thanks for all the good work, Francisco -Mensaje original- De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de Sergiu Dumitriu Enviado el: miércoles, 17 de febrero de 2010 11:44 Para: XWiki Users Asunto: Re: [xwiki-users] How to get the creation date of a document On 02/17/2010 11:13 AM, Guillaume Lerouge wrote: Hi, 2010/2/17 Hernández Cuchí, Francisco Ricardofrancisco.hernan...@oepm.es Thanks! I just got it. And to format the dato to be dd-mm-? $xwiki.formatDate($todoDoc.creationDate, 'dd-MM-') or something like that, you can check the API. Be careful, small m = minutes, large M = month. You can see all the formatting letters here: http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html Guillaume Francisco -Mensaje original- De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de Marius Dumitru Florea Enviado el: miércoles, 17 de febrero de 2010 8:37 Para: XWiki Users Asunto: Re: [xwiki-users] How to get the creation date of a document Hi Hernández, Hernández Cuchí wrote: Hello, I am rewriting the todo example list to be suitable for my company. I would like to show in the list the date of creation of the documents. How can i get it? See http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki-core-2.2-javadoc.jar/com/xpn/xwiki/api/Document.html#getCreationDate%28%29 The code is something like: table id=todoTable class=grid sortable filterable doOddEven cellpadding=0 cellspacing=0 border=0 tr class=sortHeader th class=unsortable selectFilterFecha/th thResumen/th thStatus/th thPersona/th thPestaña/th th class=unsortable selectFilterDescripcion/th /tr #foreach ($todo in $todos) tr #set ($todoDoc = $xwiki.getDocument($todo)) #set ($todoObj = $todoDoc.getObject(XWiki.TodoClass)) td[$todoObj.TargetDate$todo]/td td[$todoObj.Resumen$todo]/td td[$todoObj.Status$todo]/td td[$todoObj.Persona$todo]/td td[$todoObj.Pestana$todo]/td td$todoObj.Descripcion/td /tr #end /table So get from the todoobj the creation date. You can't get it from the object, afaik, but from the document: $todoDoc.creationDate Hope this helps, Marius Regards, Francisco -- Francisco Hernández Cuchí Jefe de Servicios Sistemas de Información OFICINA ESPAÑOLA DE PATENTES Y MARCAS C\ Paseo de la Castella 75 tlf: 913496844 mail: francisco.hernan...@oepm.esmailto:francisco.hernan...@oepm.es -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ** IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y est� dirigido �nicamente para el destinatario/s. Si Ud recibe este correo por error, por favor p�ngase en contacto con su administrador de correo o con el emisor immediatamente y no difunda su contenido a nadie ni haga copias. *** Este correo ha sido escaneado de virus y contenido malicioso *** ** ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] RESTful api - Uploading Attachments
On Feb 17, 2010, at 12:34 PM, Fabio Mancinelli wrote: On Feb 10, 2010, at 1:00 AM, Radek Rekas wrote: I'm having trouble finding out how to upload attachments using the RESTful api. I've looked at the attachment type in the schema (http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rest/src/main/resources/xwiki.rest.model.xsd) but I cant find any mention of how to link the actual attachment data. Also none of the xml resource representations are loading, I keep getting 404 errors: http://www.xwiki.org/rel/attachmentDatahttp://www.xwiki.org/rel/attachments Can anyone provide any tips on how to upload an attachment to a page using the restful api? Thanks, Hi Radek, in order to upload an attachment to a page wiki:space.page you must do an HTTP PUT on the http://server/xwiki/rest/wikis/{wiki}/spaces/{space}/pages/{page}/attachments/{attachmentName} with the body of the request containing the attachment data. The attached file in the page will have the name you specify in the {attachmentName} part of your URI. For example, using curl, you can upload a file main.pdf to the Main.WebHome using the following command: $ curl -u Admin:admin -T path_to/main.pdf http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome/attachments/foo.pdf If you open the Main.WebHome page you will see that a file foo.pdf is attached to the page and the content is that of your original main.pdf. The request authenticates you as Admin. The response, if the upload is successful, is a 201 - CREATED response whose body is the XML described in the REST XSD's model containing all the information about the newly created attachment. If the attachment already exists then a 202 - ACCEPTED response code is returned. The response's body contains the same type of XML. To complete the picture, there is actually another way to upload attachment (useful if you are building an application inside XWiki) To upload an attachment you can POST a multi-part application/form-url-encoded (i.e., what is usually sent when you put an input type=file element in a form) to the http://server/xwiki/rest/wikis/{wiki}/spaces/{space}/pages/{page}/attachments URI. In the form data you can optionally send a filename field that contains the name the attachment will have once uploaded. If this field is not present, then the original file name is used. This method can be used when you want to upload files using HTML forms. Authentication is done either by using HTTP headers (like in the previous example) or, if they are not present, by using a pre-existing authenticated cookie. That means that if you display an upload form that points to the previous URI in a wiki page the request will be sent on behalf of the user that is currently logged in. -Fabio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWord Server URL ?
Hi, I have installed the packet sniffer (Wireshark) but windows doesn't allow a tcpdump on the loopback (127.0.0.1). So for now I can't see was is going on. I will have to use XOffice from another machine... Best Regards Simon Glet On Fri, Feb 12, 2010 at 12:52 PM, Simon Glet simon.g...@gmail.com wrote: Valdis : XWiki is reachable in a browser at port 8090. I still checked in the server.xml file and http is on the same 8090 port. Florin : I removed that version and installed 1.0.0.98 and got the same problem. No login and the error in the event viewer is : Event Type: Error Event Source: XWiki Event Category: None Event ID: 0 Date: 12/02/2010 Time: 12:38:48 PM User: N/A Computer: LOG-SIMON Description: Login to server http://127.0.0.1:8090/xwiki-enterprise-web-2.1.1 failed I tried other urls like http://127.0.0.1:8090; or http://127.0.0.1:8090/xwiki-enterprise-web-2.1.1/bin/login/XWiki/XWikiLogin; with the same result. Next week, I will install a packet sniffer and check out what is going on. I have the feeling that the plugin isn't reaching the right port. Thanks Simon Glet On Fri, Feb 12, 2010 at 10:51 AM, Florin Ciubotaru florin.ciubot...@xwiki.com wrote: Hi Simon, XOffice 1.1 M1 is designed to work with XWiki 2.2 M1 or newer. You should be able to login, but you'll only get basic content when saving to the wiki. Your url looks fine, you should not have problems unless you changed the Xml-Rpc servlet mapping or you are using the wrong port, but I guess that's not the case. Can you look into the XWiki and XOffice(event viewer) logs for more details? Florin Ciubotaru On 2/12/2010 5:14 PM, Simon Glet wrote: Hi, I have installed XOffice 1.1 M1 to edit files on my XWiki 2.1.1. My previous XOffice tests were done against a stand alone jetty setup. The Server URL was just a simple http://localhost:8090. Now that I have deployed XWiki on Tomcat 6.0 I can't seem to figure out the Server URL to enter in XWord. For now I use the URL http://localhost:8090/xwiki-enterprise-web-2.1.1 in my browser to login. What am I missing ? Thanks Simon Glet ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Missing Edit button in XWiki 's sandbox test page 1
Hi there, I,ve installed the XWIKI on my machine and started the webapp. Then went to Sandbox's test page 1: http://localhost:8080/xwiki/bin/view/Sandbox/TestPage1 There it is written that i have to click on the 'Edit' button but I DONT SEE ANY BUTTON at all. Why is that? What's the problem? Thank you! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Missing Edit button in XWiki 's sandbox test page 1
Hi Bogdan, Are you logged into your wiki? The edit action is not visible by default to guest users. The default username/password are Admin/admin . After you log in, the Edit menu (not button) should appear right above the content. On 02/17/2010 05:13 PM, Bogdan Flueras wrote: Hi there, I,ve installed the XWIKI on my machine and started the webapp. Then went to Sandbox's test page 1: http://localhost:8080/xwiki/bin/view/Sandbox/TestPage1 There it is written that i have to click on the 'Edit' button but I DONT SEE ANY BUTTON at all. Why is that? What's the problem? Thank you! -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Programmatically create docs
Hi, for a glossar I would like to create documents for each letter automatically. I tried to use #set ($newDoc = $xwiki.createDocument()) However, the var $newDoc will not assigned What is wrong with that? Stefan Bachert __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Programmatically create docs
Hi Stefan, stefan bachert wrote: Hi, for a glossar I would like to create documents for each letter automatically. I tried to use #set ($newDoc = $xwiki.createDocument()) However, the var $newDoc will not assigned {{velocity}} #set ($newDoc = $xwiki.createDocument()) $newDoc.class.getName() {{/velocity}} Displays com.xpn.xwiki.api.Document for me in XE 2.2RC2 and latest XE 2.3 snapshot. Hope this helps, Marius What is wrong with that? Stefan Bachert __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com ___ 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] Programmatically create docs
On Feb 17, 2010, at 10:01 PM, stefan bachert wrote: Hi, for a glossar I would like to create documents for each letter automatically. I tried to use #set ($newDoc = $xwiki.createDocument()) However, the var $newDoc will not assigned What is wrong with that? #set ($mydoc $xwiki.getDocument(Space.Page)) $mydoc.setContent(content) $mydoc.save() Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] LiveTable column titles
I am using the LiveTable macro to build a table similar to the one in XWiki.Tableview. I have custom columns and I want to display a column's pretty name as its header, but I can't find a way to pass a column pretty name in the column properties or otherwise set the column header. The only way I've found to set this column header pretty name is to pass a translationPrefix option in the table options. Is there any way to set the column headers to a pretty name without changing / creating translation keys in the core? Joshua Rieken System Software Developer Reynolds and Reynolds 6700 Hollister | Houston, Texas 77040 office 713.718.1800 ext. 72459 | mobile 806.584.3004 joshua_rie...@reyrey.com MAKING BUSINESS BETTER. NOTE: The information contained in this e-mail is personal and confidential and may be protected by the attorney-client privilege and/or the work product doctrine. It is for the sole use of the intended recipient. Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] ORA-00932 inconsistent datatypes expected got clob
Hi Alla, I found this http://opensource.atlassian.com/projects/hibernate/browse/HHH-3606 . The problem is indeed caused by the distinct restriction. The good news is that this restriction is not really needed so I opened http://jira.xwiki.org/jira/browse/XWIKI-4907 and removed it. The problem should be fixed now on both 2.2 and 2.3 branches. Would be great if you could test the latest 2.3 or 2.2 XE snapshot ( http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/ ). Thanks! Marius adoro wrote: Hi Marius, I tried to reproduce this situation with the new installation of the last version of XE (2.2 stable) + Oracle 10g + Tomcat. Installation and .xar import were OK – no errors. Insertion a new link in a page – the same message –“There was an error loading the data”. As I understood this message concerns not AllDocs, but the tab “My Recent Changes”, that comes as first by default while inserting link. http://n2.nabble.com/file/n4587113/wysiwyg_insert_link_myrecentchanges.jpg xwiki.log: 2010-02-17 14:10:30,125 [http://localhost:8080/xwiki/resources/js/xwiki/wysiwyg/xwe/WikiService.gwtrpc] ERROR server.DefaultWikiService - Error number 3223 in 3: Exception while searching documents with sql select distinct doc from XWikiDocument doc where 1=1 and doc.author='XWiki.Admin' order by doc.date desc localhost.log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.List com.xpn.xwiki.wysiwyg.client.WikiService.getRecentlyModifiedPages(int,int)' threw an unexpected exception: java.lang.RuntimeException: Failed to retrieve the lists of recently modified pages. --- However Main.RecentChanges and Panels.MyRecentModifications show the pages changed by Admin. --- Marius Dumitru Florea wrote: Can you try this velocity code in a new page: {{velocity}} $xwiki.search(select doc from XWikiDocument doc where doc.author='XWiki.Admin').size() {{/velocity}} and tell me if the same exception is thrown? And then try: {{velocity}} $xwiki.searchDocuments(where doc.author='XWiki.Admin').size() {{/velocity}} Maybe it's a problem with the way Hibernate translates HQL to Oracle's SQL dialect. The both queries work fine --- I think the problem is either in “order by” or in “distinct” (Or in the combination of both of them…) I executed the similar query like in xwiki.log (select distinct doc from XWikiDocument doc where 1=1 and doc.author='XWiki.Admin' order by doc.date desc) against the xwiki-Oracle db select distinct doc.XWD_FULLNAME from xwikidoc doc where 1=1 and doc.XWD_AUTHOR='XWiki.Admin' order by doc.XWD_DATE desc and got an error ORA-01791: not a SELECTed expression, which means that order by- column should be selected as well (?) At the same time the query with order by expression but without distinct works fine... I have only 4 Docs, created by Admin, they are all unique and can't see any difference in the output with and without distinct... The next query with subquery works too. - select distinct XWD_FULLNAME from (select doc.XWD_FULLNAME, doc.XWD_DATE from xwikidoc doc where 1=1 and doc.XWD_AUTHOR='XWiki.Admin' order by doc.XWD_DATE desc) --- I tried also {{velocity}} $xwiki.search(select doc from XWikiDocument doc where doc.author='XWiki.Admin' order by doc.date,3,0).size() {{/velocity}} - works OK too. $xwiki.search(select distinct doc from XWikiDocument doc where doc.author='XWiki.Admin' order by doc.date,2,0) produces error “Failed to execute macro: velocity”: org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [ $xwiki.search(select distinct doc from XWikiDocument doc where doc.author='XWiki.Admin').size() ] --- --- Tab “All Pages” - works fine. --- Switch to tab “Search” – arrears the same message –“There was an error loading the data” with the ORA-00932 error in the xwiki.log: 2010-02-17 15:36:49,453 [http://localhost:8080/xwiki/resources/js/xwiki/wysiwyg/xwe/WikiService.gwtrpc] WARN util.JDBCExceptionReporter - SQL Error: 932, SQLState: 42000 2010-02-17 15:36:49,453 [http://localhost:8080/xwiki/resources/js/xwiki/wysiwyg/xwe/WikiService.gwtrpc] ERROR util.JDBCExceptionReporter - ORA-00932: Inkonsistente Datentypen: - erwartet, CLOB erhalten 2010-02-17 15:36:49,453 [http://localhost:8080/xwiki/resources/js/xwiki/wysiwyg/xwe/WikiService.gwtrpc] ERROR server.DefaultWikiService - Error number 3223 in 3: Exception while searching documents with sql select distinct doc from XWikiDocument as doc where (lower(doc.title) like '%%' or lower(doc.fullName) like '%%') Wrapped Exception: could not execute query I have no clue why it happens, because the query: select distinct XWD_FULLNAME from xwikidoc doc where (lower(doc.XWD_TITLE) like '%%' or lower(doc.XWD_FULLNAME) like '%%'); works in