<div dir="ltr">Hi guys,<br><br>I am using OpenCMS 10.5.1.<br><br>${cms.enableReload} isn't working for me.<br><br>My formatter is this:<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>${cms.enableReload}</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 id="chart-${<a href="http://cms.element.id">cms.element.id</a>}"></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>Highcharts.chart("chart-${<a href="http://cms.element.id">cms.element.id</a>}", {</div><div><br></div><div> title: {</div><div> text: "${content.value.Title}"</div><div> },</div><div><br></div><div> subtitle: {</div><div> text: 'Source: <a href="http://thesolarfoundation.com">thesolarfoundation.com</a>'</div><div> },</div><div><br></div><div> yAxis: {</div><div> title: {</div><div> text: 'Number of Employees'</div><div> }</div><div> },</div><div> legend: {</div><div> layout: 'vertical',</div><div> align: 'right',</div><div> verticalAlign: 'middle'</div><div> },</div><div><br></div><div> plotOptions: {</div><div> series: {</div><div> pointStart: 2010</div><div> }</div><div> },</div><div><br></div><div> series: [{</div><div> name: 'Installation',</div><div> data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]</div><div> }, {</div><div> name: 'Manufacturing',</div><div> data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]</div><div> }, {</div><div> name: 'Sales & Distribution',</div><div> data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]</div><div> }, {</div><div> name: 'Project Development',</div><div> data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227]</div><div> }, {</div><div> name: 'Other',</div><div> data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]</div><div> }]</div><div><br></div><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></div><br><br>My Schema has the single default field "Title" and my formatter config includes the HighCharts JS properly.<br><br>The formatter has no other issue other than that it doesn't refresh after closing the editor view.<br><br>Why might this be so? is ${cms.enableReload} placed in the wrong location?<br><br>Regards,<br>Clement<br><br>P.S.: I asked this question before, but it didn't get any reply, so I am posting it again as I really need a solution to this.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 6:00 PM, <span dir="ltr"><<a href="mailto:opencms-dev-request@opencms.org" target="_blank">opencms-dev-request@opencms.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send opencms-dev mailing list submissions to<br>
<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-<wbr>bin/mailman/listinfo/opencms-<wbr>dev</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:opencms-dev-request@opencms.org">opencms-dev-request@opencms.<wbr>org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:opencms-dev-owner@opencms.org">opencms-dev-owner@opencms.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of opencms-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Invalid OpenCMS Widget Class Error (Antonio Cordeddu)<br>
2. Writing my own editor change handler (mihai lacusteanu)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Wed, 29 Mar 2017 15:30:20 +0200<br>
From: Antonio Cordeddu <<a href="mailto:antoniocordeddu@coranto.it">antoniocordeddu@coranto.it</a>><br>
To: The OpenCms mailing list <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>><br>
Subject: Re: [opencms-dev] Invalid OpenCMS Widget Class Error<br>
Message-ID: <<a href="mailto:ef70081e-3654-8935-29c0-94a30bd6329f@coranto.it">ef70081e-3654-8935-29c0-<wbr>94a30bd6329f@coranto.it</a>><br>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"<br>
<br>
Hi Clement,<br>
<br>
have you add the node "widget" in opencms-vfs.xml config file?<br>
<br>
For example: <widget class="org.opencms.widgets.<wbr>CmsTypeComboWidget"<br>
alias="TypeComboWidget" /><br>
<br>
Regards<br>
Antonio<br>
<br>
______________________________<wbr>_________________<br>
Coranto informatica di Antonio Cordeddu<br>
Via Torricelli, 9 09047 Selargius (CA) - Italy<br>
<a href="mailto:antoniocordeddu@coranto.it">antoniocordeddu@coranto.it</a><br>
<a href="http://www.coranto.it" rel="noreferrer" target="_blank">http://www.coranto.it</a><br>
______________________________<wbr>_________________<br>
<br>
<br>
<br>
<br>
On 29/03/2017 11:21, Clement Wee wrote:<br>
> Hello!<br>
><br>
> I just created an OpenCMS native widget following the instructions in<br>
> the documentation. All the export points are set up properly etc, but<br>
> I am getting the following error when I try to load a component using<br>
> that widget in the Site Editor.<br>
><br>
> 29 Mar 2017 17:14:47,863 ERROR [ncms.loader.<wbr>CmsResourceManager: 618]<br>
> Error in getAllowedContextMap,<br>
> schema=/system/modules/elixir.<wbr>opencms/schemas/<wbr>SampleCustomChart.xsd,<br>
> type=SampleCustomChart, Invalid custom widget class<br>
> "com.elixirtech.opencms.<wbr>ChartEditor" for element "Chart" in content<br>
> definition<br>
> "opencms://system/modules/<wbr>elixir.opencms/schemas/<wbr>SampleCustomChart.xsd".<br>
><br>
> The class com.elixirtech.opencms.<wbr>ChartEditor exists in a jar in the<br>
> lib folder of the module, which is already exported, so I have no idea<br>
> why it can't export. Is it because the package name of the module and<br>
> the package name of the Widget Class is different?<br>
><br>
> Regards,<br>
> Clement<br>
><br>
><br>
> ______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-<wbr>bin/mailman/listinfo/opencms-<wbr>dev</a><br>
><br>
><br>
><br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20170329/277e461d/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.opencms.org/<wbr>pipermail/opencms-dev/<wbr>attachments/20170329/277e461d/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 29 Mar 2017 16:32:06 +0300<br>
From: mihai lacusteanu <<a href="mailto:mihailacusteanu@gmail.com">mihailacusteanu@gmail.com</a>><br>
To: The OpenCms mailing list <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>><br>
Subject: [opencms-dev] Writing my own editor change handler<br>
Message-ID:<br>
<CAHwLZpn5svWnc=<a href="mailto:XBGiW_%2BzQfvQVGe1HpWOxsna22E4zhtjFF%2BA@mail.gmail.com">XBGiW_+<wbr>zQfvQVGe1HpWOxsna22E4zhtjFF+A@<wbr>mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I need to implement my own change handler.<br>
But I don't know where to put the file.<br>
<br>
The class I need is just like the CmsEditorChangeHandlerProperty class<br>
with a few changes....so I created at first a file just<br>
like CmsEditorChangeHandlerProperty<wbr>.java to test if it works but I don't<br>
know where should I put it<br>
<br>
Can somebody help me?<br>
Thank you!<br>
<br>
*The CmsEditorChangeHandlerProperty file:*<br>
<br>
<a href="http://documentation.opencms.org/javadoc/core/src-html/org/opencms/ade/contenteditor/CmsEditorChangeHandlerProperty.html#line.46" rel="noreferrer" target="_blank">http://documentation.opencms.<wbr>org/javadoc/core/src-html/org/<wbr>opencms/ade/contenteditor/<wbr>CmsEditorChangeHandlerProperty<wbr>.html#line.46</a><br>
<br>
*Doc:*<br>
<a href="http://documentation.opencms.org/opencms-documentation/content-in-opencms/defining-a-content-type/defining-the-contents-behavior/adjusting-the-contents-appearance-in-the-content-editor/dependent-editor-fields/index.html#writing_own_handlers" rel="noreferrer" target="_blank">http://documentation.opencms.<wbr>org/opencms-documentation/<wbr>content-in-opencms/defining-a-<wbr>content-type/defining-the-<wbr>contents-behavior/adjusting-<wbr>the-contents-appearance-in-<wbr>the-content-editor/dependent-<wbr>editor-fields/index.html#<wbr>writing_own_handlers</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20170329/97fb27b4/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.opencms.org/<wbr>pipermail/opencms-dev/<wbr>attachments/20170329/97fb27b4/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-<wbr>bin/mailman/listinfo/opencms-<wbr>dev</a><br>
<br>
End of opencms-dev Digest, Vol 282, Issue 4<br>
******************************<wbr>*************<br>
</blockquote></div><br></div></div>