<div dir="ltr">The relevant formatter jsp is:<br><br><div><%@page buffer="none" session="false" trimDirectiveWhitespaces="true"%></div><div><%@ taglib prefix="cms" uri="<a href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</a>"%></div><div><%@ taglib prefix="c" uri="<a href="http://java.sun.com/jsp/jstl/core">http://java.sun.com/jsp/jstl/core</a>"%></div><div><%@ taglib prefix="fmt" uri="<a href="http://java.sun.com/jsp/jstl/fmt">http://java.sun.com/jsp/jstl/fmt</a>"%></div><div><%@ taglib prefix="fn" uri="<a href="http://java.sun.com/jsp/jstl/functions">http://java.sun.com/jsp/jstl/functions</a>"%></div><div><cms:formatter var="content"></div><div><c:set var="svg" value="image-${<a href="http://cms.element.id">cms.element.id</a>}"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span><div class="margin-bottom-30"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">         </span><div class="panel"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                    </span><h3>${<a href="http://cms.element.id">cms.element.id</a>}</h3></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">               </span></div></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">           </span><div class="image" id="${svg}"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span><!--<svg width="400" height="110"></div><div>  <span class="gmail-Apple-tab-span" style="white-space:pre">                             </span><rect width="300" height="100" style="fill:${content.value.BGColor};stroke-width:3;stroke:rgb(0,0,0)"></div><div>  <span class="gmail-Apple-tab-span" style="white-space:pre">                                  </span>Sorry, your browser does not support inline SVG. </div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                             </span></rect></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                  </span></svg>--></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">             </span></div></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">           </span><script></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                 </span>var svg = d3.select("#${svg}").append("svg").attr({"width":"400", "height":"110"});</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>var rectStyle = "fill:${content.value.BGColor};stroke-width:3;stroke:rgb(0,0,0)";</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                    </span>var rect = </div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                           </span>svg.append("rect")</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                           </span>.attr("width", 300)</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                          </span>.attr("height", 100)</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                         </span>.attr("style", rectStyle);</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">           </span></script></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span></div></div><div></cms:formatter></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 24, 2017 at 6:00 PM, Clement Wee <span dir="ltr"><<a 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 OpenCMS Admin,<div><br></div><div>I am a new user of OpenCMS who is developing a module for a client who uses OpenCMS.<br><br></div><div>I have deisgned a simple resource-type to test out D3.JS library.</div><div><br></div><div>I coded in an inline script within the resource-type JSP itself, because I don't know whether EL is supported in Head Includes Inline javascript.<br><br>When I first load a page with an element instance of the module, the SVG created using D3 shows up, but once I edit the properties of that element via the pencil-edit and save, the SVG disappears, only showing up again when I refresh the page.<br><br>Can you help me resolve this issue?</div><div><br></div><div>Regards,</div><div>Clement Wee</div><div>Singapore</div></div>
</blockquote></div><br></div>