Strange ValidateThis error: key [MAXLENGTH] doesn't exist (existing keys:)

14 views
Skip to first unread message

Göran Svensson

unread,
Apr 3, 2014, 12:18:05 PM4/3/14
to getx...@googlegroups.com
I got this error message: 
Message
stringkey [MAXLENGTH] doesn't exist (existing keys:)

When I remark this rule in Article.xml.cfm:

<property name="author" desc="author">
<!--<rule type="maxLength">
                <rule type="required" />
<param name="maxLength" value="255" />
</rule>-->
</property>
it works again.

I have only copied the maintain method in admin/controllers/news.cfc and done a new controller in public/controllers/createarticle.cfc

So that visitors can create an article.

Is there some convention I am missing? It does not seam to be that, otherwise it should not work when I remark a rule. 

Could it be a XML validation error? 

I will try to XML validate the file and do a cfdump also...

John Whish

unread,
Apr 3, 2014, 3:28:26 PM4/3/14
to getx...@googlegroups.com
Just from looking at it I'd say the validation rules XML is wrong. Haven't tested it but try this:

<property name="author" desc="author">
<rule type="required" />
<rule type="maxLength">
<param name="maxLength" value="255" />
</rule>
</property>

Cheers,

John


--
You received this message because you are subscribed to the Google Groups "Xindi CMS CFML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getxindi+u...@googlegroups.com.
To post to this group, send email to getx...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/getxindi/82a3d23d-8499-475a-bce0-52dc66e0d2b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages