Hi,

Just wondering if anyone has notice this.
If I programatically configure my view engine eg:
        public void Configure(IMonoRailConfiguration configuration)
        {
            configuration.ViewEngineConfig.ViewPathRoot =
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Views");
            configuration.ViewEngineConfig.ViewEngines.Add(new
ViewEngineInfo(typeof(NVelocityViewEngine), false));

            configuration.ExtensionEntries.Add(new
ExtensionEntry(typeof(ExceptionChainingExtension), new
MutableConfiguration("")));
        }

I actually end-up with 2 view engines registered:
1 - WebFormsViewEngine
2 - NVelocityViewEngine

But if I register the view engine in web.config:
<viewEngine viewPathRoot="Views"
customEngine="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine,
Castle.MonoRail.Framework.Views.NVelocity"></viewEngine>

I only get one, which I think is the expected result?

I notice this because I was trying to register the AspViewEngine
programmatically and it did not work and the reason(I think) is
because of the order of registration and which one is going to answer
first.

Cheers
John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" 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/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to