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] Selective space export
Thanks a lot for the app. That is what I was searching for! There is a space with only one page, and two attached files of 2 and 5 megas each. When I use dumping to directory only that space, I get the attached stack (at the bottom you can see the Caused by: java.lang.OutOfMemoryError: Java heap space:) Then, I tried with 1800 Megas of RAM and IT WORKED, thanks be to the paging and the swap memory. I attach the error, for the eternity, Thanks to everybody Error number 4001 in 4: Error while parsing velocity page /templates/contentview.vm Wrapped Exception: Failed to evaluate content with id [/templates/contentview.vm] com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page /templates/contentview.vm Wrapped Exception: Failed to evaluate content with id [/templates/contentview.vm] at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655) at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) 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.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:616) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.xpn.xwiki.plugin.webdav.DavFilter.doFilter(DavFilter.java:68) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:96) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at
Re: [xwiki-users] Java heap space problem when export
Thanks for the quick answer, i've just installed it but Still getting the Java heap space Exception Other thig I thought, but it's no fun, it's to export each space separately. The webdav thing wouldn't work? Regards, Francisco -Mensaje original- De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de Guillaume Lerouge Enviado el: viernes, 04 de septiembre de 2009 13:16 Para: XWiki Users Asunto: Re: [xwiki-users] Java heap space problem when export Hi Francisco, Try using http://code.xwiki.org/xwiki/bin/view/Snippets/LargeXARExportScriptSnippet Hope this helps, Guillaume On Fri, Sep 4, 2009 at 12:58 PM, Hernández Cuchí, Francisco Ricardo francisco.hernan...@oepm.es wrote: Hello everybody, I have a xwiki_db.script of about 1 giga and I want to export the XWIKI to another system. It doesn't mind how much memory I give to the java process, I get the error. Is there any other way of doing the import/export, that will not get the hava heap exception? Origing: xwiki self contained installer with the jetty installer Destiny: Oracle Database and Weblogic I wonder if I could do it just copying all the webdav folders or not? Thanks, Francisco -- Francisco Hernández Cuchí OFICINA ESPAÑOLA DE PATENTES Y MARCAS ** 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 Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ 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