[opencms-dev] Problem with CheckboxWidget

Tobias Herrmann t.herrmann at alkacon.com
Thu Jan 26 09:08:44 CET 2012


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 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/5eb284ee/attachment.htm>


More information about the opencms-dev mailing list