cancel
Showing results for 
Search instead for 
Did you mean: 

Constraint

mwilk34
Champ in-the-making
Champ in-the-making
I am trying to create a dropdown.  I created the following constraint:

<constraints>
     <constraint name="dsi:list1" type="LIST">
        <parameter name="allowedValues">
            <list>
                <value>ABC</value>
                <value>DEF</value>
            </list>
        </parameter>
        <parameter name="caseSensitive"><value>true</value></parameter>
     </constraint>
  </constraints>

I am getting the following error message:

      at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(Dictionary
Bootstrap.java:106)
        … 42 more
Caused by: org.jibx.runtime.JiBXException: Expected end tag, found start tag
"{http://www.alfresco.org/model/dictionary/1.0}constraint" (line 71, col 47)

Does anyone have a idea of what the problem is?

Thanks.
2 REPLIES 2

paddyman
Champ in-the-making
Champ in-the-making
I was having a similar issue.

It was corrected by moving the <constraints> ahead of the <types> in my custom model file.

targa2000
Champ in-the-making
Champ in-the-making
Thanks for the post! had same problem.