<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.StileMessaggioDiPostaElettronica18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=IT link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><a name="_MailEndCompose"><span style='color:#1F497D'>Hi,<o:p></o:p></span></a></p><p class=MsoNormal><span style='color:#1F497D'>I solved this problem by myself.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>When implementing org.opencms.widgets.I_CmsADEWidget#getWidgetName() you need to return the class name of a “built-in” OpenCms widget otherwise it will not work. I thought it should have been the class name of my custom widget. In my case the lines below solved the problem.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:#646464;background:white;mso-highlight:white;mso-fareast-language:IT'>    @</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;mso-highlight:white;mso-fareast-language:IT'>Override</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:IT'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;mso-highlight:white;mso-fareast-language:IT'>    </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;background:white;mso-highlight:white;mso-fareast-language:IT'>public</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;mso-highlight:white;mso-fareast-language:IT'> String getWidgetName() {</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:IT'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;mso-highlight:white;mso-fareast-language:IT'>      </span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:IT'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;mso-highlight:white;mso-fareast-language:IT'>      </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;background:white;mso-highlight:white;mso-fareast-language:IT'>return</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;mso-highlight:white;mso-fareast-language:IT'> CmsAdeDownloadGalleryWidget.</span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;background:white;mso-highlight:white;mso-fareast-language:IT'>class</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;mso-highlight:white;mso-fareast-language:IT'>.getName();</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:IT'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:IT'>    }<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:IT'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Bye, Lisa<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='mso-fareast-language:IT'>Da:</span></b><span style='mso-fareast-language:IT'> Supporto tecnico DomuS3D [mailto:support@domus3d.com] <br><b>Inviato:</b> mercoledė 23 gennaio 2013 15.50<br><b>A:</b> 'The OpenCms mailing list'<br><b>Oggetto:</b> Custom widgets and the new acacia editor<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal>after upgrading to OpenCms 8.5, my custom widgets don’t show in the interface of the new Acacia editor.<o:p></o:p></p><p class=MsoNormal>For example i have a widget defined as follows:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>CmsAdeVideoGalleryWidget extends A_CmsAdeGalleryWidget {…}<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If i switch to the default editor for xmlcontent then i see the button to open the custom gallery and everything works fine.<o:p></o:p></p><p class=MsoNormal>In the Acacia editor i see just an input field without the button to open the gallery.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Maybe something is changed that breaks compatibility?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bye, Lisa<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>