[opencms-dev] GWT custom widgets

Kai Widmann Widmann at mediaworx.de
Sat Apr 13 16:18:07 CEST 2019


Hey Antonio,

if it’s only a Select Widget with custom options you need, you don't even have to develop JavaScript or GWT at all, this can simply be done in pure Java by creating a subclass of CmsSelectWidget and overriding the method parseSelectOptions that returns a List of CmsSelectWidgetOptions (see sample code below).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190413/0b48b76e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SingleSelectWidget.java
Type: application/octet-stream
Size: 3922 bytes
Desc: SingleSelectWidget.java
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190413/0b48b76e/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190413/0b48b76e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CustomWidgetExample.zip
Type: application/zip
Size: 10676 bytes
Desc: CustomWidgetExample.zip
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190413/0b48b76e/attachment.zip>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190413/0b48b76e/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CustomWidgetExample2.zip
Type: application/zip
Size: 15033 bytes
Desc: CustomWidgetExample2.zip
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190413/0b48b76e/attachment-0001.zip>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190413/0b48b76e/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: org.opencms.dev.demo.customwidget_8.5.1.zip
Type: application/zip
Size: 6385 bytes
Desc: org.opencms.dev.demo.customwidget_8.5.1.zip
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190413/0b48b76e/attachment-0002.zip>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190413/0b48b76e/attachment-0004.htm>


More information about the opencms-dev mailing list