What do you mean by a unique configuration? I will create a test on
the weekend with a standalone test cases if I can't get it working.

Craig.


On Fri, May 22, 2009 at 10:45 AM, Dario Quintana
<[email protected]> wrote:
> You should use a unique configuration. If you prefer using Fluent remove the
> one is on the app.config/web.config.
> Would be nice to see a testcase to reproduce the issue.
>
> On Thu, May 21, 2009 at 9:20 PM, Craig van Nieuwkerk <[email protected]>
> wrote:
>>
>> ValidatorEngine ve = new ValidatorEngine();
>> NHVConfiguration nhvc = new NHVConfiguration();
>> nhvc.Properties[Environment.MessageInterpolatorClass] =
>> typeof(CustomMessageInterpolator).AssemblyQualifiedName;
>> ve.Configure(nhvc);
>>
>> I am using Fluent nHibernate as well and this code is immediately
>> after the configuration for that.
>>
>> Craig
>>
>> On Fri, May 22, 2009 at 10:14 AM, Dario Quintana
>> <[email protected]> wrote:
>> > Can you show me your NHV configuration code ?
>> >
>> > On Thu, May 21, 2009 at 8:28 PM, Craig van Nieuwkerk <[email protected]>
>> > wrote:
>> >>
>> >> I am using Version 1.0.0GA. There is no error or stacktrace, the
>> >> Custom IMessageInterpolator is just never called. It does get
>> >> registered and constructed because if I put a breakpoint in the
>> >> constructor it is called, but none of the other methods seems to get
>> >> called from then on and the DefaultMessageInterpolator is always used.
>> >>
>> >> Craig.
>> >>
>> >> On Fri, May 22, 2009 at 2:49 AM, Dario Quintana
>> >> <[email protected]> wrote:
>> >> > Which version of NHV ?
>> >> > Can you give us an error or stacktrace ?
>> >> >
>> >> > On Thu, May 21, 2009 at 10:38 AM, Craig van Nieuwkerk
>> >> > <[email protected]>
>> >> > wrote:
>> >> >>
>> >> >> Has anyone managed to get a custom IMessageInterpolator working to
>> >> >> enable customisation of error messages. I have tried following the
>> >> >> instructions on this web page but to no avail.
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://codelog.climens.net/2009/03/04/nhibernate-validator-custom-messages/
>> >> >>
>> >> >> Looking into the code the DefaultMessageInterpolator seems pretty
>> >> >> baked into the framework so is there anything I am missing.
>> >> >>
>> >> >> Craig
>> >> >>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Dario Quintana
>> >> > http://darioquintana.com.ar
>> >> >
>> >> > >
>> >> >
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Dario Quintana
>> > http://darioquintana.com.ar
>> >
>> > >
>> >
>>
>>
>>
>
>
>
> --
> Dario Quintana
> http://darioquintana.com.ar
>
> >
>

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