<div dir="ltr">Hi, <div><br></div><div>I found why it did not work : I'm in a nested element. So, default values must be defined in the parent xsd.</div><div>Forgot this rule, sorry ^^'</div><div><br></div><div>And thanks Antonio for help. </div>
<div><br></div><div>Regards, </div><div>Matthias</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/27 Antonio Cordeddu <span dir="ltr"><<a href="mailto:antoniocordeddu@coranto.it" target="_blank">antoniocordeddu@coranto.it</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi Matthias,<br>
<br>
It works fine by this way:<br>
<br>
<xsd:element name="TestBoolean" type="OpenCmsBoolean" />
<br>
...<br>
<defaults><br>
<default element="TestBoolean" value="true"
/><br>
</defaults><br>
<br>
I'm using 8.5.2 OpenCms version.<br>
<br>
Kind Regards<br>
Antonio Cordeddu<div><div class="h5"><br>
<br>
On 27/09/2013 09:56, Matthias Griselle wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,
<div><br>
</div>
<div>Is there a way to check a checkbox by default ?</div>
<div><br>
</div>
<div>In my XSD file, I tried : </div>
<div><xsd:element name="Active" type="OpenCmsBoolean"/><br>
</div>
<div>...</div>
<default element="Active" value="TRUE"/>
<div><default element="Active" value="true"/></div>
<default element="Active" value="1"/><br>
<div><default element="Active" value="checked"/></div>
<div><br>
</div>
<div>but nothing works. When a create a new module, checkbox are
unchecked. </div>
<div>What's the trick ? </div>
<div><br>
</div>
<div>Thx, </div>
<div>Matthias</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
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 href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
_______________________________________
<br>
Coranto informatica di Antonio Cordeddu
<br>
Via Torricelli, 9 09047 Selargius (CA)
<br>
<a href="mailto:antoniocordeddu@coranto.it" target="_blank">antoniocordeddu@coranto.it</a>
<br>
<a href="http://www.coranto.it" target="_blank">http://www.coranto.it</a>
<br>
_______________________________________<br>
<br>
<br>
</div>
<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>