<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Clement,<br>
</p>
<p>seems there are two DOM elements inside your formatter.<br>
Wrapping everything with another <div> should help:<br>
<font face="Courier New, Courier, monospace" size="-1"><cms:formatter
var="content" val="chart"><br>
<div><br>
...<br>
</div><br>
</cms:formatter> </font> <br>
</p>
Best,<br>
Tobias<br>
<br>
<div class="moz-cite-prefix">Am 02.05.2017 um 16:39 schrieb Clement
Wee:<br>
</div>
<blockquote
cite="mid:CAM8TMLD5TuL_eTegkhom=W-8kCzUnHXzfay-RMzb4ZUp7gq85w@mail.gmail.com"
type="cite">
<div dir="ltr"><span style="font-size:12.8px">Hi guys,</span>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">I am using OpenCMS 10.5.1 and
having trouble with cms.enableReload. Despite the fact that it
is injected into my resource type, I don't see the
resource-type appearing. The script works when run standalone
outside of OpenCMS.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">
<div><%@page buffer="none" session="false"
trimDirectiveWhitespaces="<wbr>true"%></div>
<div><%@ taglib prefix="cms" uri="<a moz-do-not-send="true"
href="http://www.opencms.org/taglib/cms" target="_blank">http://www.opencms.org/<wbr>taglib/cms</a>"%></div>
<div><%@ taglib prefix="c" uri="<a moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/core" target="_blank">http://java.sun.com/jsp/<wbr>jstl/core</a>"%></div>
<div><%@ taglib prefix="fmt" uri="<a moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/fmt" target="_blank">http://java.sun.com/jsp/<wbr>jstl/fmt</a>"%></div>
<div><%@ taglib prefix="fn" uri="<a moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/functions"
target="_blank">http://java.sun.com/jsp/<wbr>jstl/functions</a>"%></div>
<div><%@ taglib prefix="elx" uri="/WEB-INF/taglib/elixir.<wbr>tld"%></div>
<div><%@ taglib prefix="sql" uri="<a moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/sql" target="_blank">http://java.sun.com/jsp/<wbr>jstl/sql</a>"
%></div>
<div><br>
</div>
<div><cms:formatter var="content" val="chart"></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><jsp:useBean
id="db" class="com.elixirtech.opencms.<wbr>DBConfig" /></div>
<div><br>
</div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><sql:setDataSource
var="spv2" driver="${db.driver}"</div>
<div> <span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>url="${db.url}"</div>
<div> <span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>user="${db.user}"
password="${db.password}"/></div>
<div><br>
</div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><sql:query
dataSource="${spv2}" var="prices"></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>${db.query}</div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></sql:query></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:set
var="options" value="..."/></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:set
var="data" value="..."/></div>
<div><br>
</div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><div
class="margin-bottom-30"></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:set
var="svg" value="img-${<a moz-do-not-send="true"
href="http://cms.element.id/" target="_blank">cms.element.id</a>}"/<wbr>></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:if
test="${cms.edited}"></div>
<div> <span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><!--
enforce an automatic reload, when the content is edited or</div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>moved
to another container --></div>
<div> <span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>${cms.enableReload}</div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></c:if></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><div
id="${svg}"></div></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><script></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><span
class="gmail-m_-1954937713448917359gmail-Apple-tab-span">...</span><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></script><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div>
<div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div><span class="gmail-m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div>
<div></cms:formatter><br>
<br>
When I insert the content, the screen flashes and then the
content disappears. Do I need to do anything additional to
make sure the content shows?<br>
<br>
</div>
<div>Regards,</div>
<div>Clement Wee</div>
<div>Singapore</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, May 2, 2017 at 11:37 PM,
Clement Wee <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:clement@elixirtech.com" target="_blank">clement@elixirtech.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi guys,
<div><br>
</div>
<div>I am using OpenCMS 10.5.1 and having trouble with
cms.enableReload. Despite the fact that it is injected
into my resource type, I don't see the resource-type
appearing. The script works when run standalone
outside of OpenCMS.</div>
<div><br>
</div>
<div>
<div><%@page buffer="none" session="false"
trimDirectiveWhitespaces="<wbr>true"%></div>
<div><%@ taglib prefix="cms" uri="<a
moz-do-not-send="true"
href="http://www.opencms.org/taglib/cms"
target="_blank">http://www.opencms.org/<wbr>taglib/cms</a>"%></div>
<div><%@ taglib prefix="c" uri="<a
moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/core"
target="_blank">http://java.sun.com/jsp/<wbr>jstl/core</a>"%></div>
<div><%@ taglib prefix="fmt" uri="<a
moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/fmt"
target="_blank">http://java.sun.com/jsp/<wbr>jstl/fmt</a>"%></div>
<div><%@ taglib prefix="fn" uri="<a
moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/functions"
target="_blank">http://java.sun.com/jsp/<wbr>jstl/functions</a>"%></div>
<div><%@ taglib prefix="elx"
uri="/WEB-INF/taglib/elixir.<wbr>tld"%></div>
<div><%@ taglib prefix="sql" uri="<a
moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/sql"
target="_blank">http://java.sun.com/jsp/<wbr>jstl/sql</a>"
%></div>
<div><br>
</div>
<div><cms:formatter var="content" val="chart"></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><jsp:useBean
id="db" class="com.elixirtech.opencms.<wbr>DBConfig"
/></div>
<div><br>
</div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><sql:setDataSource
var="spv2" driver="${db.driver}"</div>
<div> <span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>url="${db.url}"</div>
<div> <span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>user="${db.user}"
password="${db.password}"/></div>
<div><br>
</div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><sql:query
dataSource="${spv2}" var="prices"></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>${db.query}</div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></sql:query></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:set
var="options" value="..."/></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:set
var="data" value="..."/></div>
<div><br>
</div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><div
class="margin-bottom-30"></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:set
var="svg" value="img-${<a moz-do-not-send="true"
href="http://cms.element.id" target="_blank">cms.element.id</a>}"/<wbr>></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><c:if
test="${cms.edited}"></div>
<div> <span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><!--
enforce an automatic reload, when the content is
edited or</div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>moved
to another container --></div>
<div> <span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>${cms.enableReload}</div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></c:if></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><div
id="${svg}"></div></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><script></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><span
class="m_-1954937713448917359gmail-Apple-tab-span">...</span><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></script><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div>
<div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div><span class="m_-1954937713448917359gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div>
<div></cms:formatter><br>
<br>
When I insert the content, the screen flashes and
then the content disappears. Do I need to do
anything additional to make sure the content shows?<br>
<br>
</div>
<div>Regards,</div>
<div>Clement Wee</div>
<div>Singapore</div>
<div class="gmail_extra"><br>
<div class="gmail_quote"><br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>