[opencms-dev] Invalid OpenCMS Widget Class Error (Antonio Cordeddu)

Antonio Cordeddu antoniocordeddu at coranto.it
Fri Mar 31 10:00:37 CEST 2017


Hi Clement,

when OpenCms starts, it loads the widgets, so I think it's necessary to 
declare them in opencms-vfs.xml config file.

Regards,
Antonio


30 Mar 2017 18:41:55,050  INFO [s.xml.CmsXmlContentTypeManager: 259] . 
XML content config   : added widget 
"org.opencms.widgets.CmsCalendarWidget", alias "DateTimeWidget"


On 31/03/2017 05:39, Clement Wee wrote:
> Hi Antonio,
>
> No, I haven't. But does this matter since I am using the full 
> qualified Java class name?
>
> I am using OpenCMS 10.5.1, and adapting from the Native Widget example 
> in the Official OpenCMS documentation:
>
> http://documentation.opencms.org/opencms-documentation/extending-opencms/extending-the-content-editor/writing-native-editor-widgets/
>
> Regards,
> Clement
>
> On Thu, Mar 30, 2017 at 6:00 PM, <opencms-dev-request at opencms.org 
> <mailto:opencms-dev-request at opencms.org>> wrote:
>
>     Send opencms-dev mailing list submissions to
>     opencms-dev at opencms.org <mailto:opencms-dev at opencms.org>
>
>     To subscribe or unsubscribe via the World Wide Web, visit
>     http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>     <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>
>     or, via email, send a message with subject or body 'help' to
>     opencms-dev-request at opencms.org
>     <mailto:opencms-dev-request at opencms.org>
>
>     You can reach the person managing the list at
>     opencms-dev-owner at opencms.org <mailto:opencms-dev-owner at opencms.org>
>
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of opencms-dev digest..."
>
>
>     Today's Topics:
>
>        1. Re: Invalid OpenCMS Widget Class Error (Antonio Cordeddu)
>        2. Writing my own editor change handler (mihai lacusteanu)
>
>
>     ----------------------------------------------------------------------
>
>     Message: 1
>     Date: Wed, 29 Mar 2017 15:30:20 +0200
>     From: Antonio Cordeddu <antoniocordeddu at coranto.it
>     <mailto:antoniocordeddu at coranto.it>>
>     To: The OpenCms mailing list <opencms-dev at opencms.org
>     <mailto:opencms-dev at opencms.org>>
>     Subject: Re: [opencms-dev] Invalid OpenCMS Widget Class Error
>     Message-ID: <ef70081e-3654-8935-29c0-94a30bd6329f at coranto.it
>     <mailto:ef70081e-3654-8935-29c0-94a30bd6329f at coranto.it>>
>     Content-Type: text/plain; charset="windows-1252"; Format="flowed"
>
>     Hi Clement,
>
>     have you add the node "widget" in opencms-vfs.xml config file?
>
>     For example: <widget class="org.opencms.widgets.CmsTypeComboWidget"
>     alias="TypeComboWidget" />
>
>     Regards
>     Antonio
>
>     _______________________________________________
>     Coranto informatica di Antonio Cordeddu
>     Via Torricelli, 9 09047 Selargius (CA) - Italy
>     antoniocordeddu at coranto.it <mailto:antoniocordeddu at coranto.it>
>     http://www.coranto.it
>     _______________________________________________
>
>
>
>
>     On 29/03/2017 11:21, Clement Wee wrote:
>     > Hello!
>     >
>     > I just created an OpenCMS native widget following the
>     instructions in
>     > the documentation. All the export points are set up properly
>     etc, but
>     > I am getting the following error when I try to load a component
>     using
>     > that widget in the Site Editor.
>     >
>     > 29 Mar 2017 17:14:47,863 ERROR [ncms.loader.CmsResourceManager: 618]
>     > Error in getAllowedContextMap,
>     > schema=/system/modules/elixir.opencms/schemas/SampleCustomChart.xsd,
>     > type=SampleCustomChart, Invalid custom widget class
>     > "com.elixirtech.opencms.ChartEditor" for element "Chart" in content
>     > definition
>     >
>     "opencms://system/modules/elixir.opencms/schemas/SampleCustomChart.xsd".
>     >
>     > The class com.elixirtech.opencms.ChartEditor exists in a jar in the
>     > lib folder of the module, which is already exported, so I have
>     no idea
>     > why it can't export. Is it because the package name of the
>     module and
>     > the package name of the Widget Class is different?
>     >
>     > Regards,
>     > Clement
>     >
>     >
>     > _______________________________________________
>     > 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
>     > http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>     <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>
>     >
>     >
>     >
>
>
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170329/277e461d/attachment-0001.html
>     <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170329/277e461d/attachment-0001.html>>
>
>     ------------------------------
>
>     Message: 2
>     Date: Wed, 29 Mar 2017 16:32:06 +0300
>     From: mihai lacusteanu <mihailacusteanu at gmail.com
>     <mailto:mihailacusteanu at gmail.com>>
>     To: The OpenCms mailing list <opencms-dev at opencms.org
>     <mailto:opencms-dev at opencms.org>>
>     Subject: [opencms-dev] Writing my own editor change handler
>     Message-ID:
>            
>     <CAHwLZpn5svWnc=XBGiW_+zQfvQVGe1HpWOxsna22E4zhtjFF+A at mail.gmail.com
>     <mailto:XBGiW_%2BzQfvQVGe1HpWOxsna22E4zhtjFF%2BA at mail.gmail.com>>
>     Content-Type: text/plain; charset="utf-8"
>
>     I need to implement my own change handler.
>     But I don't know where to put the file.
>
>     The class I need is just like the CmsEditorChangeHandlerProperty class
>     with a few changes....so I created at first a file just
>     like CmsEditorChangeHandlerProperty.java to test if it works but I
>     don't
>     know where should I put it
>
>     Can somebody help me?
>     Thank you!
>
>     *The CmsEditorChangeHandlerProperty file:*
>
>     http://documentation.opencms.org/javadoc/core/src-html/org/opencms/ade/contenteditor/CmsEditorChangeHandlerProperty.html#line.46
>     <http://documentation.opencms.org/javadoc/core/src-html/org/opencms/ade/contenteditor/CmsEditorChangeHandlerProperty.html#line.46>
>
>     *Doc:*
>     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
>     <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>
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170329/97fb27b4/attachment-0001.html
>     <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170329/97fb27b4/attachment-0001.html>>
>
>     ------------------------------
>
>     _______________________________________________
>     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
>     http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>     <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>
>
>     End of opencms-dev Digest, Vol 282, Issue 4
>     *******************************************
>
>
>
>
> _______________________________________________
> 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
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170331/ebf63f07/attachment.htm>


More information about the opencms-dev mailing list