<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Yves,<br>
<br>
the alias for the CheckboxWidget is 'BooleanWidget'. You can either
use the alias or the qualified class name:<br>
<br>
<layout element="PublishedInBook" widget="BooleanWidget" /><br>
<br>
or<br>
<br>
<layout element="PublishedInBook"
widget="org.opencms.widgets.CmsCheckboxWidget" /><br>
<br>
You can find all available core widgets within the opencms-vfs.xml
configuration file beneath /opencms/xmlcontent/widgets/.<br>
<br>
Greetings, Tobias<br>
<pre class="moz-signature" cols="300">
--
Alkacon Software GmbH - The OpenCms Experts
<a class="moz-txt-link-freetext" href="http://www.alkacon.com">http://www.alkacon.com</a> -- <a class="moz-txt-link-freetext" href="http://www.opencms.org">http://www.opencms.org</a>
</pre>
<br>
Am 25.01.2012 22:51, schrieb Yves Glodt:
<blockquote
cite="mid:CAAPhX7fuz5ozM90=sk-Ke30rzmiGiuogrA+D0PGT0fFdS_dBQQ@mail.gmail.com"
type="cite">Hello,<br>
<br>
I can not get the CheckboxWidget to work...<br>
<br>
(This page states it exists: <a moz-do-not-send="true"
href="http://opencms-wiki.org/Defining_OpenCMS_structured_XML_content">http://opencms-wiki.org/Defining_OpenCMS_structured_XML_content</a>
)<br>
<br>
I tried with OpenCmsString and OpenCmsBoolean (?) as type.<br>
<br>
Here the exception when editing the classic structured content<br>
<br>
Unable to unmarshal XML content definition schema
"opencms://sites/mysite/page2.xsd".<br>
Reason: Invalid custom widget class "CheckboxWidget" for element
"PublishedInBook" in content definition
"opencms://sites/mysite/page2.xsd".<br>
Reason: CheckboxWidget<br>
<br>
And later down then this:<br>
<pre><pre>Caused by: java.lang.ClassNotFoundException: CheckboxWidget</pre></pre>
<br>
Here the config:<br>
<br>
...<br>
<xsd:element name="PublishedInBook" type="OpenCmsString" /><br>
...<br>
<layout element="PublishedInBook" widget="CheckboxWidget" /><br>
...<br>
<br>
I use OpenCms 8.0.3 with PostgreSQL 9.1.<br>
<br>
Thanks for any input,<br>
Yves<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
</body>
</html>