[opencms-dev] having problems listing form-based content
Marc Davenport
mdavenport at endeca.com
Mon Nov 1 21:45:48 CET 2004
I did get the listing to work, I just had to remove the content that was
left over from my previous attempt. example.
1. made myarticles.xsd
2. made foo.html, a generic xml content that formed appropriately to
myarticles.xsd
3. then I decide to start over and deleted myartilces.xsd, but did not
delete foo.html
4. made myWhatever.xsd
5. made bar.html, a generic xml content that formed with myWhatever.xsd and
then a couple others
at this point I could edit bar.html with "nice" editor, and I could display
it, but when I tried to do a listing that looking a directory with both
foo.html and bar.html I got a NPE.
6. I deleted foo.htmln
7. Now I have no NPE when i do a listing.
I hope that helps
Marc
-----Original Message-----
From: Andy Kriger [mailto:akriger at greaterthanone.com]
Sent: Monday, November 01, 2004 3:10 PM
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] having problems listing form-based content
So you never got the listing part to work?
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Marc Davenport
Sent: Monday, November 01, 2004 2:12 PM
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] having problems listing form-based content
Sorry I wasn't too clear.
I had two kinds of content samples. One that matched a previous schema, and
one that matched the current one. I also had the editor and the display
working and got a NPE when i was trying the listing
-----Original Message-----
From: Andy Kriger [mailto:akriger at greaterthanone.com]
Sent: Monday, November 01, 2004 1:52 PM
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] having problems listing form-based content
I'm not sure I follow you. Two different kinds of XML files? When you
started again, did you remove all files or only your content sample? I have
the display and the editor parts working (so contentload/contentshow do
work) - it's the list collector that seems to be causing the problem, but
I'm not sure what exactly is causing the NPE.
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Marc Davenport
Sent: Monday, November 01, 2004 1:32 PM
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] having problems listing form-based content
I did have a similar problem when I was setting up a demo for myself. I
found that I had two different kinds of xml files. I had an original, and
then when I was having problems I started over again. See if this your
problem..
Marc Davenport
-----Original Message-----
From: Andy Kriger [mailto:akriger at greaterthanone.com]
Sent: Monday, November 01, 2004 12:41 PM
To: 'The OpenCms mailing list'
Subject: [opencms-dev] having problems listing form-based content
I am setting up form-based content entry following the directions here
http://mail.opencms.org/pipermail/opencms-dev/2004q4/013609.html
Here is my list file:
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<cms:contentload collector="allInFolder"
param="/gto/article_${number}.html|11" editable="false">
<h3><cms:contentshow element="Title" /></h3> </cms:contentload> And here is
the error java.lang.NullPointerException at
org.opencms.file.CmsRequestContext.getSitePath(CmsRequestContext.java:329)
at org.opencms.file.CmsObject.getSitePath(CmsObject.java:1207) at
org.opencms.jsp.CmsJspTagContentLoad.doLoadNextFile(CmsJspTagContentLoad.jav
a:164) at
org.opencms.jsp.CmsJspTagContentLoad.doStartTag(CmsJspTagContentLoad.java:24
1) at
_jsp._WEB_22dINF._jsp._offline._sites._default._gto._article_22dlist__jsp._j
spService(_article_22dlist__jsp.java:38)
I have the same problem in the xmlcontent demo page. Is anyone else seeing
similar behavior? Have you found a fix or a workaround?
My system:
Java 1.4.2
Resin 3.0.8
OpenCMS 6a2
MySQL 3.23.58
Thanks,
andy
This email message and any attachments are confidential to Endeca. If you
are not the intended recipient, please notify Endeca immediately -- by
replying to this message or by sending an email to: legal at endeca.com -- and
destroy all copies of this message and any attachments. Thank you.
_______________________________________________
This mail is send to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
_______________________________________________
This mail is send to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
This email message and any attachments are confidential to Endeca. If you
are not the intended recipient, please notify Endeca immediately -- by
replying to this message or by sending an email to: legal at endeca.com -- and
destroy all copies of this message and any attachments. Thank you.
_______________________________________________
This mail is send to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
This email message and any attachments are confidential to Endeca. If you
are not the intended recipient, please notify Endeca immediately -- by
replying to this message or by sending an email to: legal at endeca.com -- and
destroy all copies of this message and any attachments. Thank you.
More information about the opencms-dev
mailing list