[opencms-dev] Problem with CheckboxWidget
Yves Glodt
yg at mind.lu
Thu Jan 26 09:23:49 CET 2012
Hello Tobias,
thank you for the information! I will try it out tonight.
If you hear nothing else it means I got it working :)
Best regards,
Yves
On 26 January 2012 09:08, Tobias Herrmann <t.herrmann at alkacon.com> wrote:
> Hi Yves,
>
> the alias for the CheckboxWidget is 'BooleanWidget'. You can either use
> the alias or the qualified class name:
>
> <layout element="PublishedInBook" widget="BooleanWidget" />
>
> or
>
> <layout element="PublishedInBook"
> widget="org.opencms.widgets.CmsCheckboxWidget" />
>
> You can find all available core widgets within the opencms-vfs.xml
> configuration file beneath /opencms/xmlcontent/widgets/.
>
> Greetings, Tobias
>
> --
>
> Alkacon Software GmbH - The OpenCms Experts
> http://www.alkacon.com -- http://www.opencms.org
>
>
> Am 25.01.2012 22:51, schrieb Yves Glodt:
>
> Hello,
>
> I can not get the CheckboxWidget to work...
>
> (This page states it exists:
> http://opencms-wiki.org/Defining_OpenCMS_structured_XML_content )
>
> I tried with OpenCmsString and OpenCmsBoolean (?) as type.
>
> Here the exception when editing the classic structured content
>
> Unable to unmarshal XML content definition schema
> "opencms://sites/mysite/page2.xsd".
> Reason: Invalid custom widget class "CheckboxWidget" for element
> "PublishedInBook" in content definition "opencms://sites/mysite/page2.xsd".
> Reason: CheckboxWidget
>
> And later down then this:
>
> Caused by: java.lang.ClassNotFoundException: CheckboxWidget
>
>
> Here the config:
>
> ...
> <xsd:element name="PublishedInBook" type="OpenCmsString" />
> ...
> <layout element="PublishedInBook" widget="CheckboxWidget" />
> ...
>
> I use OpenCms 8.0.3 with PostgreSQL 9.1.
>
> Thanks for any input,
> Yves
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visithttp://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
> _______________________________________________
> 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/20120126/0ba0656d/attachment.htm>
More information about the opencms-dev
mailing list