[opencms-dev] Validation Rules

Jonathan Woods jonathan.woods at scintillance.com
Sun Feb 19 07:29:47 CET 2006


Joel -
 
Did you ever get this sorted?  I suspect I'm about to run into the same
problem!
 
Jon

  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Tosi, Joel
Sent: 08 February 2006 17:41
To: The OpenCms mailing list
Subject: [opencms-dev] Validation Rules



We are running on 6.0.2.  In one of our xsd files, we put in a validation
rule to ensure that this field is populated (a required field).  So the
validation rule was:

 

<validationrules>

            <rule element="Title" regex="!^\s*$" type="warning"
message="Title field should not be left empty" />

</validationrules>

 

The problem is that this error shows up when we create a new piece of
structured content.  Why isn't the validation rule only called on save or
did we do something wrong?

 

Thanks,

Joel

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060219/589a2b4f/attachment.htm>


More information about the opencms-dev mailing list