The NHV's interpolator is an ugly beast.
It allow too many flexible things to be solved in a static way as needed in
the client side.
For example it is recursive in each message piece.
IMO the best way is to define custom messages in clientside and use it
instead NHV messages.
at the end in NHV there are a lot of combination that can't be resolved in
client-side (read it as the usage of Satisfier).

In MVC you should use DataAnnotations to validate the presentation-model
(with its easy and simple plain validation) and then you can use NHV to
validate your real Model (with its high complexity as graph, inheritance,
collections, entity-validation, validation-context and so on).

On Thu, May 6, 2010 at 11:26 AM, sztupy <[email protected]> wrote:

> Hi!
>
> I'm trying to add NHibernate.Validator support for ASP.NET MVC client
> side validations. You can find it's current state here:
>
> http://github.com/sztupy/shaml/tree/master/shaml/Shaml.Core.Validator/ValidatorProvider/
>
> ASP.NET MVC client side validation works so that you have to create a
> list of all the validation types you encountered (it supports
> required, pattern, range and length type validations), and takes care
> of the rest on the client side. This is working fine (check the code
> above) except for one thing: the inability to get the interpolated
> messages out from the attributes. What is the easiest way to contact
> the Interpolator (especially the default interpolator)?
>
> Here are some excerpts from what I've been already trying:
>
> http://stackoverflow.com/questions/2664975/how-to-get-interpolated-message-in-nhibernate-validator
>
> Thanks
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>


-- 
Fabio Maulo

-- 
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.

Reply via email to