AnsweredAssumed Answered

constraint-handlers dont work

Question asked by ltardioli on Oct 25, 2012
Latest reply on Mar 13, 2013 by anand6105
Hello ppl,

I trying to do a validation using a constraint-handler in my share-config-custom.xml file. I have a model and a form that is working fine, but the validation just doesnt works;

The snippets of my code:

<property name="axcl:clienteContato">
               <title>Nome contato</title>
               <type>d:text</type>
</property>


<field id="axcl:clienteContato" label-id="prop.axcl_clienteContato">
                  <constraint-handlers>
                     <constraint type="MANDATORY" validation-handler="Alfresco.forms.validation.mandatory" event="keyup" />
                  </constraint-handlers>
</field>

I turn on the debbug mode and seems that the constraint dont exist.
I've looked for something in logs files but there isnt a thing about that.

Anyone knows what I missing?

Thanks!

Ah, I'm using Alfresco CE 4.0e

Outcomes