[opencms-dev] Only one validation rule by entity

Le Nouveau opencms at lenouveau.fr
Wed Sep 4 14:59:43 CEST 2013


Hi all,

It seems that only one validation rule is available for one entity.
To be understood :

<validationrules>
    <rule element="Title" regex=".+" type="error"
message="%(key.label.RssReader.Title.error.empty)" />
    <rule element="Title" regex="^[a-zA-Z0-9àéêèïöù!?:@€\._ -]*$"
type="error" message="%(key.label.RssReader.Title.error.invalidChar)" />
</validationrules>
This will only check for invalid chars.

<validationrules>
    <rule element="Title" regex="^[a-zA-Z0-9àéêèïöù!?:@€\._ -]*$"
type="error" message="%(key.label.RssReader.Title.error.invalidChar)" />
    <rule element="Title" regex=".+" type="error"
message="%(key.label.RssReader.Title.error.empty)" />
</validationrules>
This will only check if Title is not empty.

What did I miss ?
I'm using OpenCMS 8.5.2.

Thanks for help,
Regards,
LeNouveau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130904/22ccbc45/attachment.htm>


More information about the opencms-dev mailing list