List Info

Thread: Validation Rules




Validation Rules
country flaguser name
United States
2007-03-07 02:36:50
Hello,

I have next validation rule in my XSD,

<validationrules>
	<rule element="Titulo"
regex="^.*[S]+.*$" 
message="${key.editor.errormessage.Documento.isobligato
ryerror|${validation.path}}" 
/>
	<rule element="URLFichero"
regex="^.*[S]+.*$" 
message="${key.editor.warning.Documento.isobligatoryerr
or|${validation.path}}"/>
</validationrules>

I created an entry in my XSD module“s workplace.properties
like this
editor.errormessage.Documento.isobligatoryerror=Texto en 
es obligatorio.

This text doesn“t appear when validating the entries. I only
see a red 
cross and a top message like this:
The following errors occurred when validating the form:

how can I change the messge above?

Thanks in advance

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the
list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

Re:
country flaguser name
United States
2007-03-07 05:34:46
I solved the issue, I wasn“t write an entry like this
<resourcebundle
name="es.newmodulo.workplace"/>

Any way, I stranged about this because before adding line
before, 
messages appeared localizated according to
workplace.properties but 
error messages didn“t appear. Could be a possible bug?

Raśl Lorenzo escribió:
> Hello,
> 
> I have next validation rule in my XSD,
> 
> <validationrules>
>     <rule element="Titulo"
regex="^.*[S]+.*$" 
>
message="${key.editor.errormessage.Documento.isobligato
ryerror|${validation.path}}" 
> />
>     <rule element="URLFichero"
regex="^.*[S]+.*$" 
>
message="${key.editor.warning.Documento.isobligatoryerr
or|${validation.path}}"/> 
> 
> </validationrules>
> 
> I created an entry in my XSD module“s
workplace.properties like this
> editor.errormessage.Documento.isobligatoryerror=Texto
en  es 
> obligatorio.
> 
> This text doesn“t appear when validating the entries. I
only see a red 
> cross and a top message like this:
> The following errors occurred when validating the
form:
> 
> how can I change the messge above?
> 
> Thanks in advance
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing
list
> To change your list options, or to unsubscribe from the
list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the
list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )