<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Default is minOccurs="1" and
maxOccurs="1" so <br>
<xsd:element name="TopTeaser" type="OpenCmsCategory"
minOccurs="1" maxOccurs="1" />
<br>
in your case.<br>
<br>
Try <br>
<xsd:element name="TopTeaser" type="OpenCmsCategory"
minOccurs="0" />
<br>
<br>
Regards,<br>
Tobias<br>
<br>
Am 23.01.2013 11:17, schrieb Schliemann, Kai:<br>
</div>
<blockquote
cite="mid:38B19AD8C321A9478F287F25365F776B0FA79305@AM2PRD0311MB423.eurprd03.prod.outlook.com"
type="cite">
<pre wrap="">Hi list,
I found a strange behavior while using the CategoryWidget in my schema.
First of all, this is how my schema looks like:
...
<xsd:element name="TopTeaser" type="OpenCmsCategory" />
...
<layout element="TopTeaser" widget="CategoryWidget" configuration="category=agencies/" />
...
<validationrules/>
...
As you can see, the element is not defined as required field.
Nevertheless, OpenCms marks this field as required (the label of the field is in red color).
The most disturbing thing is, that I can save and close the file without a further warning.
BUT, if I do not select a category in this field, the whole content is not saved.
This behavior can't be intentional. I assume, this is a bug.
Can anybody confirm this behavior or give me hint on how to solve this issue?
Thanks in advance.
Regards
Kai
</pre>
<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>
<br>
</body>
</html>