<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Clement,<br>
      <br>
      when OpenCms starts, it loads the widgets, so I think it's
      necessary to declare them in opencms-vfs.xml config file.<br>
      <br>
      Regards,<br>
      Antonio<br>
      <br>
      <br>
      30 Mar 2017 18:41:55,050  INFO [s.xml.CmsXmlContentTypeManager:
      259] . XML content config   : added widget
      "org.opencms.widgets.CmsCalendarWidget", alias "DateTimeWidget"<br>
      <br>
      <br>
      On 31/03/2017 05:39, Clement Wee wrote:<br>
    </div>
    <blockquote
cite="mid:CAM8TMLCp+eST+q8G3A0WhM2QJg5zHUpLCTXbjw4dA_3qvGP33A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Antonio,<br>
        <br>
        No, I haven't. But does this matter since I am using the full
        qualified Java class name?<br>
        <br>
        I am using OpenCMS 10.5.1, and adapting from the Native Widget
        example in the Official OpenCMS documentation:<br>
        <br>
        <a moz-do-not-send="true"
href="http://documentation.opencms.org/opencms-documentation/extending-opencms/extending-the-content-editor/writing-native-editor-widgets/">http://documentation.opencms.org/opencms-documentation/extending-opencms/extending-the-content-editor/writing-native-editor-widgets/</a><br>
        <br>
        Regards,
        <div>Clement<br>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On Thu, Mar 30, 2017 at 6:00 PM, <span
                dir="ltr"><<a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:antoniocordeddu@coranto.it">antoniocordeddu@coranto.it</a>><br>
                To: The OpenCms mailing list <<a
                  moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:antoniocordeddu@coranto.it">antoniocordeddu@coranto.it</a><br>
                <a moz-do-not-send="true" 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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
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 moz-do-not-send="true"
                  href="mailto:mihailacusteanu@gmail.com">mihailacusteanu@gmail.com</a>><br>
                To: The OpenCms mailing list <<a
                  moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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 <a class="moz-txt-link-freetext" href="file:*">file:*</a><br>
                <br>
                <a moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
                  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>
      </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>
    <br>
  </body>
</html>