Hi Frank,<br><br>Thanks for your answer and I&#39;m sorry for the late response.<br><br>Yes, I&#39;m using compound types.<br><br>I did some experiments in the cms to reproduce this problem:<br><br>1) With the latest archtype I build a clean cms 7.4 project.<br>
<br>2) I&#39;ve changed the element &quot;title&quot; from textdocument content type to be required.<br>Updated all contents and validation works fine.<br><br>3) I made a new compound type named &quot;Metadata&quot; with a required string element named &quot;description&quot;.<br>
Updated all contents and validation works fine.<br><br>4) If I add the compound type &quot;Metadata&quot; in the textdocument document type, then the following warning appears:<br>WARN  [org.hippoecm.frontend.editor.plugins.field.FieldItem.&lt;init&gt;():96] Template supports validation, but container does not provide validator model<br>
<br>We can see that it is some misconfiguration when using compound type with document type.<br>Any idea how I can solve it?<br><br>Thanks,<br><br>Wilson<br><br><br><div class="gmail_quote">2010/8/25 Frank van Lankvelt <span dir="ltr">&lt;<a href="mailto:f.vanlankvelt@onehippo.com">f.vanlankvelt@onehippo.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">your configuration seems to be correct.  There are no compound types being used?<div>If you&#39;re using a customized cms-editor plugin cluster, make sure to include the <a href="http://validator.id" target="_blank">validator.id</a> property in the editorPlugin configuration.<br>

<div><br></div><div>It should be possible to include the field name in the message using a custom validation plugin (note that the field should already indicate it itself).  Then, you can use the ModelPath&#39;s from the Violation to retrieve the field names.  (this is a path since an error might be triggered by a nested compound)</div>

<div><br></div><div>cheers, Frank<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Wed, Aug 25, 2010 at 4:06 PM, Wilson de Paula Pedro Junior <span dir="ltr">&lt;<a href="mailto:wppjunior@gmail.com" target="_blank">wppjunior@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">Hi,<br><br>I&#39;m having some problems implementing the cms validation properly.<br>
When I open a document, the following warning appears many times:<br>
<br>WARN  [org.hippoecm.frontend.editor.plugins.field.FieldItem.&lt;init&gt;():96] Template supports validation, but container does not provide validator model.<br>

<br>Any ideas? Am I missing some nodes?<br><br>- nodetype<br><br>            &lt;sv:node sv:name=&quot;title&quot;&gt;<br>                &lt;sv:property sv:name=&quot;jcr:primaryType&quot; sv:type=&quot;Name&quot;&gt;<br>



                    &lt;sv:value&gt;hipposysedit:field&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;hipposysedit:mandatory&quot; sv:type=&quot;Boolean&quot;&gt;<br>



                    &lt;sv:value&gt;false&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;hipposysedit:multiple&quot; sv:type=&quot;Boolean&quot;&gt;<br>                    &lt;sv:value&gt;false&lt;/sv:value&gt;<br>



                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;hipposysedit:ordered&quot; sv:type=&quot;Boolean&quot;&gt;<br>                    &lt;sv:value&gt;false&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>



                &lt;sv:property sv:name=&quot;hipposysedit:path&quot; sv:type=&quot;String&quot;&gt;<br>                    &lt;sv:value&gt;myproject:title&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;hipposysedit:primary&quot; sv:type=&quot;Boolean&quot;&gt;<br>



                    &lt;sv:value&gt;false&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;hipposysedit:type&quot; sv:type=&quot;String&quot;&gt;<br>                    &lt;sv:value&gt;String&lt;/sv:value&gt;<br>



                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;hipposysedit:validators&quot; sv:type=&quot;String&quot;&gt;<br>                    &lt;sv:value&gt;non-empty&lt;/sv:value&gt;<br>                    &lt;sv:value&gt;required&lt;/sv:value&gt;<br>



                &lt;/sv:property&gt;<br>            &lt;/sv:node&gt;<br><br>- editor:templates:<br>    &lt;sv:node sv:name=&quot;editor:templates&quot;&gt;<br>        &lt;sv:property sv:name=&quot;jcr:primaryType&quot; sv:type=&quot;Name&quot;&gt;<br>



            &lt;sv:value&gt;editor:templateset&lt;/sv:value&gt;<br>        &lt;/sv:property&gt;<br>        &lt;sv:node sv:name=&quot;_default_&quot;&gt;<br>            &lt;sv:property sv:name=&quot;jcr:primaryType&quot; sv:type=&quot;Name&quot;&gt;<br>



                &lt;sv:value&gt;frontend:plugincluster&lt;/sv:value&gt;<br>            &lt;/sv:property&gt;<br>            &lt;sv:property sv:name=&quot;frontend:properties&quot; sv:type=&quot;String&quot;&gt;<br>                &lt;sv:value&gt;mode&lt;/sv:value&gt;<br>



            &lt;/sv:property&gt;<br>            &lt;sv:property sv:name=&quot;frontend:references&quot; sv:type=&quot;String&quot;&gt;<br>                &lt;sv:value&gt;wicket.model&lt;/sv:value&gt;<br>                &lt;sv:value&gt;engine&lt;/sv:value&gt;<br>



                &lt;sv:value&gt;<a href="http://validator.id" target="_blank">validator.id</a>&lt;/sv:value&gt;<br>            &lt;/sv:property&gt;<br>            &lt;sv:property sv:name=&quot;frontend:services&quot; sv:type=&quot;String&quot;&gt;<br>



                &lt;sv:value&gt;<a href="http://wicket.id" target="_blank">wicket.id</a>&lt;/sv:value&gt;<br>                &lt;sv:value&gt;<a href="http://validator.id" target="_blank">validator.id</a>&lt;/sv:value&gt;<br>


            &lt;/sv:property&gt;<br>
            &lt;sv:property sv:name=&quot;type&quot; sv:type=&quot;String&quot;&gt;<br>                &lt;sv:value&gt;myproject:BaseMetadata&lt;/sv:value&gt;<br>            &lt;/sv:property&gt;<br>            &lt;sv:node sv:name=&quot;root&quot;&gt;<br>



                &lt;sv:property sv:name=&quot;jcr:primaryType&quot; sv:type=&quot;Name&quot;&gt;<br>                    &lt;sv:value&gt;frontend:plugin&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;item&quot; sv:type=&quot;String&quot;&gt;<br>



                    &lt;sv:value&gt;${<a href="http://cluster.id" target="_blank">cluster.id</a>}.field&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;plugin.class&quot; sv:type=&quot;String&quot;&gt;<br>



                    &lt;sv:value&gt;org.hippoecm.frontend.service.render.ListViewPlugin&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;<a href="http://wicket.id" target="_blank">wicket.id</a>&quot; sv:type=&quot;String&quot;&gt;<br>



                    &lt;sv:value&gt;${<a href="http://wicket.id" target="_blank">wicket.id</a>}&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>            &lt;/sv:node&gt;<br>            &lt;sv:node sv:name=&quot;title&quot;&gt;<br>



                &lt;sv:property sv:name=&quot;jcr:primaryType&quot; sv:type=&quot;Name&quot;&gt;<br>                    &lt;sv:value&gt;frontend:plugin&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;<a href="http://translator.id" target="_blank">translator.id</a>&quot; sv:type=&quot;String&quot;&gt;<br>



                    &lt;sv:value&gt;myproject.translator&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;engine&quot; sv:type=&quot;String&quot;&gt;<br>                    &lt;sv:value&gt;${engine}&lt;/sv:value&gt;<br>



                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;field&quot; sv:type=&quot;String&quot;&gt;<br>                    &lt;sv:value&gt;title&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>



                &lt;sv:property sv:name=&quot;mode&quot; sv:type=&quot;String&quot;&gt;<br>                    &lt;sv:value&gt;${mode}&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;plugin.class&quot; sv:type=&quot;String&quot;&gt;<br>



                    &lt;sv:value&gt;org.hippoecm.frontend.editor.plugins.field.PropertyFieldPlugin&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;<a href="http://validator.id" target="_blank">validator.id</a>&quot; sv:type=&quot;String&quot;&gt;<br>



                    &lt;sv:value&gt;${<a href="http://validator.id" target="_blank">validator.id</a>}&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;<a href="http://wicket.id" target="_blank">wicket.id</a>&quot; sv:type=&quot;String&quot;&gt;<br>



                    &lt;sv:value&gt;${<a href="http://cluster.id" target="_blank">cluster.id</a>}.field&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:property sv:name=&quot;wicket.model&quot; sv:type=&quot;String&quot;&gt;<br>



                    &lt;sv:value&gt;${wicket.model}&lt;/sv:value&gt;<br>                &lt;/sv:property&gt;<br>                &lt;sv:node sv:name=&quot;cluster.options&quot;&gt;<br>                    &lt;sv:property sv:name=&quot;jcr:primaryType&quot; sv:type=&quot;Name&quot;&gt;<br>



                        &lt;sv:value&gt;frontend:pluginconfig&lt;/sv:value&gt;<br>                    &lt;/sv:property&gt;<br>                &lt;/sv:node&gt;<br>            &lt;/sv:node&gt;<br><br><br>Other question, when validating I get some error messages like:<br>



A required field is not present<br>A string value is empty<br><br>Can I change this messages, including the name of the field?<br>Or I have to write my own validator plugin to achieve this?<br><br><br>Thank you!<br><font color="#888888"><br>

Wilson<br>
<br><br><br>
</font><br></div></div><div class="im">_______________________________________________<br>
Hippo-cms7-user mailing list and forums<br>
<a href="http://www.onehippo.org/cms7/support/forums.html" target="_blank">http://www.onehippo.org/cms7/support/forums.html</a><br></div></blockquote></div><br></div></div>
<br>_______________________________________________<br>
Hippo-cms7-user mailing list and forums<br>
<a href="http://www.onehippo.org/cms7/support/forums.html" target="_blank">http://www.onehippo.org/cms7/support/forums.html</a><br></blockquote></div><br>