<not-empty message="should not be empty" />
Gustavo.
On Sat, Jul 4, 2009 at 4:18 PM, Vels <[email protected]> wrote:
>
> how to override NHV message ? and where ?
>
> config info:
> nhvc = New XmlConfiguration
> nhvc.Properties(Environment.ApplyToDDL) = "false"
> nhvc.Properties(Environment.AutoregisterListeners) = "true"
> nhvc.Properties(Environment.ValidatorMode) = "UseExternal"
> nhvc.Mappings.Add(New MappingConfiguration("BO", Nothing))
> valiEngine.Configure(nhvc)
>
> mapping info :
> <?xml version="1.0" encoding="utf-8" ?>
> <nhv-mapping xmlns="urn:nhibernate-validator-1.0">
> <class name ="BO.BillHeader, BO" >
> <property name ="BillNo" >
> <not-null/>
> <not-empty/>
> </property>
> <property name ="CheckedBy" >
> <not-null/>
> <not-empty />
> </property>
> </class>
> </nhv-mapping>
>
> Envrn:
> VB.NET 2008
> NHV Product Version:1.2.0.1003
>
> when invalid data its throwing
> propertyname:"maynot be empty"
> instead i want "should not be empty"
> how to do ? where i can implement ?
> is there any blog post?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---