[opencms-dev] XML Content Demo
Xavier Ottolini
xavier.ottolini at adelis.com
Mon May 16 14:02:30 CEST 2005
Hi folks!
I just would like to add a little comment about the tutorial "XML Content Demo" (see the following link).
http://mail.opencms.org/pipermail/opencms-dev/2004q4/013609.html
In the step 4 (Create a "detail" page) the tutorial contains a minimum template. But il you want a full features detail page with tags
<cms:include property="template" element="head" />, the article throws an exception when you lauch it.
java.lang.NullPointerException
at org.opencms.xml.A_CmsXmlDocument.getBookmarkName(A_CmsXmlDocument.java:113)
at org.opencms.xml.A_CmsXmlDocument.getBookmark(A_CmsXmlDocument.java:518)
at org.opencms.xml.A_CmsXmlDocument.getValueInternal(A_CmsXmlDocument.java:592)
at org.opencms.xml.A_CmsXmlDocument.getStringValue(A_CmsXmlDocument.java:238)
at org.opencms.loader.CmsXmlContentLoader.service(CmsXmlContentLoader.java:231)
at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:293)
at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:210)
at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:344)
at org.apache.jsp.detail_jsp._jspService(detail_jsp.java:80)
There is a solution : set the property "template" in the parent forder and not in the JSP file.
Note that the property "param" of the tag "cms:contentload" should be set to
${opencms.uri}.
Regards,
--
Xavier Ottolini
Développeur multimédia
Adelis
37, rue d'Engwiller
67350 La Walck
France
Téléphone : +33 (0) 3 88 72 29 10
Télécopie : +33 (0) 3 88 72 29 19
http://www.adelis.com
More information about the opencms-dev
mailing list