Actually I saw that code. The simplest fix I could figure was this...
In the page http://.../xwiki/bin/edit/XWiki/WebRssCode,
I replaced this line
<dc:date>$currentdoc.date</dc:date>
with
<dc:date>$xwiki.formatDate($currentdoc.date, "yyyy-MM-dd'T'HH:mm:ss")</dc:date>
The fix however omits the timezone.
There is java code at http://www.dpawson.co.uk/relaxng/schema/datetime.html
which handles the timezone as well.
The SimpleDateFormat pattern "yyyy-MM-dd'T'HH:mm:ss.SSSZ" is close as it gives
2005-06-29T17:20:46.171-0800
This however does not work because of the missing colon. It needs to
be 2005-06-29T17:20:46.171-08:00
The simplest way seems to be to use commons-lang utilities
DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format(new Date())
Since commons-lang is already part of the distribution is there a easy
way to add this code? I just don't know how to incorporate it in here
at this point due to unfamiliarity with velocity, groovy etc.
Thanks very much.
regards
Sudhir
On 6/29/05, Ludovic Dubost <ludovic(a)xwiki.com> wrote:
>
> Yes.. You need to customize the code in BlogRssCode
>
> http://www.xwiki.com/xwiki/bin/view/XWiki/BlogRssCode?xpage=code
>
> You can get this code and put it in your wiki and modify it.
> The line <dc:date>$currentdoc.display("date", "view", $currentobj)</dc:date>
> Should be changed to some conversion.. I'm not sure which one though
> If you send us some java code that does the conversion and right
> formatting we can adapt it for the scripting
>
> Ludovic
>
> Sudhir Rao a écrit :
>
> >Is there any easy way to change the timestamp format in the rss feed
> >which gets generated without modifying xwiki source code?
> >
> >The field
> ><dc:date>Tue Jun 28 16:31:33 PDT 2005</dc:date>
> >should have been formatted as per the dateTime spec at
> >http://www.w3.org/TR/xmlschema-2/#dateTime
> >
> >The current behavior seems to throw off the date/time sorting in RSS
> >readers as they just ignore the value.
> >
> >A SimpleDateFormat conversion has been given here..
> >
> >http://lists.xml.org/archives/xml-dev/200311/msg00153.html
> >which uses the format
> >"yyyy-MM-dd'T'HH:mm:ss,SSS'Z'"
> >
> >Any thoughts?
> >
> >-Sudhir
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >
> >--
> >You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
> >To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> >For general help: mailto:sympa@objectweb.org?subject=help
> >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
>
>
> --
> Ludovic Dubost
> XPertNet: http://www.xpertnet.fr/
> Blog: http://www.ludovic.org/blog/
> XWiki: http://www.xwiki.com
> Skype: ldubost AIM: nvludo Yahoo: ludovic
>
>
Hi,
I followed the Tutorial an used the Class Editor. I does not matter if i uses xwiki or a new Web, for both i get the 404.
The following URL is used when i click the "Create this class" button:
http://127.0.0.1:8080/xwiki/edit/FAQs/FAQClass?parent=XWiki.XWikiClasses&te…
May be this an issue of the latest version (0.9.1000)i downloaded via svn ? I tried the 0.9.840 version where everything works fine.
Kind regards
André
> -----Ursprüngliche Nachricht-----
> Von: jeremi joslin [mailto:jeremi23@gmail.com]
> Gesendet: Freitag, 13. Januar 2006 02:25
> An: xwiki-users(a)objectweb.org
> Betreff: Re: [xwiki-users] Create a XWikiClass
>
>
> Hi,
> maybe your URL is wrong.
>
> do you go to an url like :
> http://jeremi.xwiki.com/xwiki/bin/edit/XWiki/FAQClass?xpage=editclass
>
>
> You can see :
> http://www.xwiki.org/xwiki/bin/view/DevGuide/F> AQs+Tutorial
>
> and http://www.xwiki.org/xwiki/bin/view/DevGuide/Packaging+Rules
>
> Jérémi
>
> On 1/12/06, andre.fleischer(a)lhsystems.com
> <andre.fleischer(a)lhsystems.com> wrote:
> >
> > Hi
> >
> > I just downloaded the latest sources from svn and build a fresh war
> > file. (Version 0.9.1000) Then i tried to create a new
> XWikiClass using
> > the XWikiClasses page. I chooes FAQs as Webname and FAQ as
> Class name.
> >
> > I got the error message:
> > HTTP Status 404 - /xwiki/edit/FAQs/FAQClass description The
> requested
> > resource (/xwiki/edit/FAQs/FAQClass) is not available.
> >
> > Any ideas ?
> >
> > Kind regards
> > André
> >
> >
> >
> >
> > --
> > You receive this message as a subscriber of the
> > xwiki-users(a)objectweb.org mailing list. To unsubscribe:
> > mailto:xwiki-users-unsubscribe@objectweb.org
> > For general help: mailto:sympa@objectweb.org?subject=help
> > ObjectWeb mailing lists service home page:
> http://www.objectweb.org/wws
> >
> >
> >
>
>
> --
> Blog:
> http://www.jeremi.info
> LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724
> http://www.xwiki.org
> skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
>
>
Hi all,
I'm running into the following exception when trying to download
certain attachments:
Error number 3231 in 3: Exception while loading attachment xyz.doc of
document PM.xyz
Wrapped Exception: No row with the given identifier exists:
[com.xpn.xwiki.doc.XWikiAttachmentContent#903453393]
com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while
loading attachment xyz.doc of document PM.xyz
Wrapped Exception: No row with the given identifier exists:
[com.xpn.xwiki.doc.XWikiAttachmentContent#903453393]
at com.xpn.xwiki.store.XWikiHibernateStore.loadAttachmentContent(XWikiHibernateStore.java:1484)
at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:1499)
at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:360)
at com.xpn.xwiki.XWikiService.renderDownload(XWikiService.java:689)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:186)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:788)
Looking at the database, it appears some attachments do not have
content. Any idea what's going on?
mysql> select XWA_ID from xwikiattachment where XWA_ID not in (select
XWA_ID from xwikiattachment_content);
+-------------+
| XWA_ID |
+-------------+
| -1545435440 |
| -1316229821 |
| 903453393 |
| 1853219705 |
+-------------+
Regards,
Robin
Hello everyone.
When I go to any of my pages, I see the following exception there:
Error number 4001 in 4: Error while parsing velocity page Doc.WebHome
Wrapped Exception: Invocation of method 'getDocument' in class
com.xpn.xwiki.api.XWiki threw exception class
com.xpn.xwiki.XWikiException : Error number 3202 in 3: Exception while
reading document XWiki.kkembhavi
Wrapped Exception: Error number 3212 in 3: Exception while loading
object XWiki.kkembhavi Wrapped Exception: identifier of an instance of
com.xpn.xwiki.objects.BaseObject altered from -547570503 to -278557223
Could someone please tell me what it is telling me and how I can fix that?
Many thanks
Ali.
Hi,
Users are pasting HTML generated by various apps into their docs and
then aren't able to render to pdf. I found that attempting to save a
document with the following content to pdf results in a 0 byte file:
<table>
<tr>
<td nowrap></td>
</tr>
</table>
Looking at the log:
org.xml.sax.SAXParseException: Attribute name "nowrap" associated with
an element type "td" must be followed by the ' = ' character.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyXsl(PdfExportImpl.java:164)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.convertXHtmlToXMLFO(PdfExportImpl.java:147)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java:79)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:108)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:122)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportToPDF(PdfExportImpl.java:112)
at com.xpn.xwiki.XWikiService.renderPDF(XWikiService.java:894)
[...]
I realise that nowrap is not valid xhtml, but I would have thought
that jTidy (which I believe you are using for the html -> xhtml
conversion) would map it to nowrap="nowrap" or style="white-Space:
nowrap;". Apparently not..
Can anyone suggest a workaround?
Regards,
Robin
Hi,
Is anyone comfortably running the email notification plugin?
I'm seing quite a lot of strange behaviour.
For example, if I understand correctly, the plugin is supposed to
programatically create a new class, and add an instance of that class
to the user's page when they first create a subscription.
Looking at the database after subscribing to a page, I can see some
new properties but they don't seem to be associated with any objects
(and they have an ID of 0, which I'm guessing isn't healthy):
select * from xwikiproperties order by abs(XWP_ID) desc;
+-------------+-------------------------------+--------------------------------------------+
| XWP_ID | XWP_NAME | XWP_CLASSTYPE
|
+-------------+-------------------------------+--------------------------------------------+
[...]
| -512550 | groups |
com.xpn.xwiki.objects.StringProperty |
| -512550 | levelsye |
com.xpn.xwiki.objects.StringProperty |
| -512550 | allow |
com.xpn.xwiki.objects.IntegerProperty |
| 0 | subscribedDocuments |
com.xpn.xwiki.objects.DBStringListProperty |
| 0 | subscribedWebs |
com.xpn.xwiki.objects.DBStringListProperty |
| 0 | schedulerName |
com.xpn.xwiki.objects.StringListProperty |
+-------------+-------------------------------+--------------------------------------------+
select XWO_NAME, XWO_ID from xwikiobjects where XWO_ID='0';
Empty set (0.00 sec)
Would we perhaps expect to see something like this if the call to
doc.addobject() is failing somewhere?
After manually adding an instance of the email notification object to
my user page things
seem to be working, so far.
Regards,
Robin
>From: Ludovic Dubost [ mailto:ludovic@xwiki.com
<mailto:ludovic@xwiki.com> ]
>Subject: Re: [xwiki-users] {pre} tags not working
Hi Ludovic,
>Is this in a normal wiki page edit or using forms (in the blog for
example).
>I've never heard anything about {table} turning to HTML. It seems
>similar. I could guess that the editing renders the content before
>puting it in the form. Have you modified the "Edit" template, maybe in
>your skin ?
I may have misunderstood your question. I'm still in the 'beginner'
stages with XWiki and am not the person who originally set it up at our
site, so I'm not familiar with all of the internals.
I have more information on my problem with the {pre} tags.
When we add new pages to our XWiki, we use an entry form on the left
Menu bar. The code for adding the new page is:
<div class="xwikimenulinks">
#includeTopic("XWiki.XWikiCommonJavascript")
<form action="" id="newdoc">
<input type="hidden" name="parent" value="Main.WebHome" />
<input type="hidden" name="template" value="XWiki.ArticleClassTemplate"
/>
<input type="hidden" name="sheet" value="1" />
<input type="hidden" name="webname" value="Main"/>
<input type="hidden" name="name" value=""/>
<input type="text" name="title" value="" size="18"/>
<input type="button" value="Add this item" onclick='if
(updateName(this.form.title,this.form.name)) { action="../../inline/" +
this.form.webname.value + "/" + this.form.name.value;
this.form.submit(); }' />
</form>
</div>
What I learned on Friday, 1/13, is that I can get {pre} to work on new
non-existent pages by doing these steps:
1. create a new XWiki entry using the form above
2. on the new page, place a link to a non-existent XWiki page such as:
[My New Page>Main.MyNewPage]
3. save the new page
4. click on the blue question mark next to "My New Page" to edit the
referenced page
I will get a different edit page, the one with "Basic Syntax" (XWiki
syntax) along the right column. If I enter {pre} tags in this editor,
they seem to work?! I think this may be the difference in the forms
used, and I think this may be the question you originally asked?
John