<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello List,<br>
<br>
I created a new widget class from A_CmsSelectWidget:<br>
1. override the three constructors, <br>
2. override getDialogWidget(...) to generate a simple static select
button with some options for first tests<br>
3. override getWidgetStringValue(...) with copy of code from
standard class CmsSelectWidget<br>
4. add "public I_CmsWidget newInstance() { return new
CmsSelectWidget(getConfiguration()); }"<br>
5. register the widget in opencms-vfs.xml<br>
<br>
When I test the widget, the options defined in getDialogWidget() are
not displayed. Only get an empty Selector.<br>
If I define options as for standard SelectorWidget then these
options are displayed.<br>
<br>
It looks my defined HTML in getDialogWidget() is ignored. But why?
Exists such situations? <span id="result_box" class="short_text"
lang="en"><span class="hps">What</span> <span class="hps">were</span>
<span class="hps">the reasons?</span></span><br>
<br>
<span id="result_box" class="" lang="en"><span class="hps">To</span>
<span class="hps">verify that</span> <span class="hps">I</span> <span
class="hps">actually</span> <span class="hps">work</span> <span
class="hps">with the new class</span><span class=""></span></span>,
I deleted the *.class file from classes directory in the rfs, and I
get the expected error (after tomcat restart) when I want to edit a
corresponding xmlcontent resources. <br>
I work with OpenCMS 7.5.4.<br>
<br>
<span id="result_box" class="short_text" lang="en"><span class="hps">A
few years ago</span></span> I'd created widgets in OpenCMS 7.0.4
in the self manner as described above, and these works correctly.<br>
<br>
Exists differences between OpenCMS version 7 and 7.5, which explain
this?<br>
<br>
Regards<br>
Holger<br>
<br>
</body>
</html>