<html v="urn:schemas-microsoft-com:vml" o="urn:schemas-microsoft-com:office:office" w="urn:schemas-microsoft-com:office:word" m="http://schemas.microsoft.com/office/2004/12/omml"><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></head><body lang="DE" link="#0563C1" vlink="#954F72">Hi Kai,<br>
<br>
you're my savior! ;-)<br>
<br>
That sounds pretty encouraging because for a couple of sites/projects (still in evaluation) the XmlPage would perfectly meet the requirements in many ways.<br>
<br>
Yes, I need the module zip or a source of it (looked in the Maven repo but only found 8.x there).<br>
Where / which context (system or demo site) do I have to install/import it?<br>
<br>
Thx for your assistance,<br>
<br>
Gerd<br><br><div class="gmail_quote">Am 20. Februar 2017 11:28:41 MEZ, schrieb "Schliemann, Kai" <K.Schliemann@comundus.com>:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<!--[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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Hi Gerd,<p></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.<p></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.<p></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.<p></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.<p></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<p></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<p></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
<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><p> </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<p></p></span></p>
</div>
</div>
<p class="MsoNormal"></p><p> </p>
<p>Dear All,</p><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 ;-)</p><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.</p><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.</p><p></p>
<p>But when it comes to use them on the site I'm stuck with it since some days now.</p><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).</p><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/....)</p><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.</p><p></p>
<p>The error is (from the log):</p><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 />
:<p></p></span></p>
<p>I understand the error from the servlet (container) point, but have no clue, what might cause it!?</p><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.</p><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.</p><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.</p><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)?</p><p></p>
<p></p><p> </p>
<p>Already many thanks for any help!</p><p></p>
<p>Gerd</p><p></p>
</div>
<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />This mail is sent to you from the opencms-dev mailing list<br />To change your list options, or to unsubscribe from the list, please visit<br /><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br /><br /><br /><br /></pre></blockquote></div></body></html>