<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.E-MailFormatvorlage19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Hi Gerd,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">I can confirm, that it works on a 9.5.x installation and I am pretty sure, it should work in 10.5. too.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">I would recommend to install the org.opencms.welcome module from a 7.0.x release. It contains a complete xmlpage based template and
demo content.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">I think, this will explain a lot.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">If you need the module zip, let me know.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">HTH<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Kai
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org]
<b>Im Auftrag von </b>Gerd Schrick<br>
<b>Gesendet:</b> Freitag, 17. Februar 2017 01:12<br>
<b>An:</b> opencms-dev@opencms.org<br>
<b>Betreff:</b> [opencms-dev] (Template for) XmlPages in V 10.5.0<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Dear All,<o:p></o:p></p>
<p>someone out there who is using XmlPages in Version 10.5 and can confirm that it works? I'm at least a bit lost in regard to this ;-)<o:p></o:p></p>
<p>For couple of reasons I'd like to (also) use XmlPages for my testsite; one is that the Extended HTML Import does perfectly meet my needs and works well for me, but it only supports xmlpages.<o:p></o:p></p>
<p>After commenting in the xmlpage explorertype block in config/opencms-workplace.xml it's now possible to use the xmlpages in the Workplace (Explorer, Sitemap) edit and also create them w/o any problems.<o:p></o:p></p>
<p>But when it comes to use them on the site I'm stuck with it since some days now.<o:p></o:p></p>
<p>I built the testsite mainly according to the documentation (Tutorial "multilingual site", SingleTree, en, de, fr) and have a simple ContainerPage template with one container only (for the main content) plus two included JSPs for navigation <cms:include .../>
what works well (for ContainerPages).<o:p></o:p></p>
<p>As template for the XmlPages I just copied the one for ContainerPages and changed the following:<br>
instead of (the single) <cms:container .../> I use <cms:include element="body" editable="true"/><br>
and instead of <cms:enable-ade/> in head I use <cms:editable/><br>
And according to what I found in the web, that should work ... but it does not. :-(<br>
(yes, the template property of each XmlPage is set to the right template /system/modules/....)<o:p></o:p></p>
<p>When I display the page (offline) it gets rendered to the point where the <cms:include /> is and none of the content from the XmlPage is shown. An Error-popup is show (see below). But funnily enough, after I click it away I can click on the edit point, get
to the Editor (TinyMCE) and can edit the page. After save and close, then the same as before.<o:p></o:p></p>
<p>The error is (from the log):<o:p></o:p></p>
<p><span lang="EN-US">ERROR [ org.opencms.main.OpenCmsCore:2185] getWriter() has already been called for this response rendering URL
</span><a href="http://arisnb4:8081/opencms/opencms/en/issues/2007/index.html"><span lang="EN-US">http://arisnb4:8081/opencms/opencms/en/issues/2007/index.html</span></a><span lang="EN-US"><br>
java.lang.IllegalStateException: getWriter() has already been called for this response<br>
at org.apache.catalina.connector.Response.getOutputStream(Response.java:575)<br>
at org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFacade.java:194)<br>
at org.opencms.loader.A_CmsXmlDocumentLoader.service(A_CmsXmlDocumentLoader.java:244)<br>
at org.opencms.loader.CmsXmlPageLoader.service(CmsXmlPageLoader.java:44)<br>
:<o:p></o:p></span></p>
<p>I understand the error from the servlet (container) point, but have no clue, what might cause it!?<o:p></o:p></p>
<p>I already tried so many things, but without success.<br>
Without the <cms:include /> there's no error<br>
Also removed ... all the other includes (navigation), the <cms:editable/>, the editable="true" attribute ... still the same.<br>
inlcuding a simple JSP works<br>
(<cms:include file="/system/modules/epo.epooj.template/elements/test-include.jsp" editable="true"/>)<br>
but instead using the hardcoded url to one of the XmlPages does not work again.<o:p></o:p></p>
<p>The super-confusing part is, that it already worked (the content was shown/included)! After I started with the import some days ago I only replaced the <cms:container with the <cms:include in the ContainerPage template, then the XmlPage content was there
and I get an error with ContainerPages (obviously); but now also this does not work anymore.<br>
Since then I just enhanced the navigation in the template and installed and deleted only some documentation modules (7.0.0 and 9.5.5) what I can't imagine to be the cause.<o:p></o:p></p>
<p>The only remaining idea now is to try it again with a fresh installation; no big issue, but I'd better like to understand (and solve) the cause.<o:p></o:p></p>
<p>Is there something more needed to (re)activate support for the XmlPage type than what I did in config/opencms-workplace.xml (see above)?<br>
If so, what is it and how to do it (where to find the infos)?<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Already many thanks for any help!<o:p></o:p></p>
<p>Gerd<o:p></o:p></p>
</div>
</body>
</html>