via : "Quick Note
Also note that from now on, your controllers, view components and optionally the filters are standard components, and they need to be registered on the container." When looking this up to answer your question, I realized that I was trying to declare the controllers assembly in the controllers node of the config file and also in the containers node of the windsor section of the config. Removed the reference to the controllers assembly, and Windsor Integration works from the config file. Thanks for your help, sometimes it's just good to bounce an idea off of someone. On Jul 10, 9:28 am, Mauricio Scheffer <[email protected]> wrote: > Fluent nhibernate is a different project, with no relation to > Castle:http://code.google.com/p/fluent-nhibernate/ > About the config, I don't quite understand... do you want to > programatically register controllers via the fluent reg api, or > register them via xml, or both? > Where does it say that the windsor integration ignores controllers? I > have an app where controllers are programatically registered, and some > have parameters defined in xml, and it all just works. Or maybe I'm > misunderstanding something? > > On Jul 10, 2:09 am, BlessYAHU <[email protected]> wrote: > > > Thanks. Guess I'll just grab the latest from trunk to get the fluent > > hibernate stuff. Know how to have Windsor Integration read from the > > config as well? The documentation said it ignores the controllers > > node when Windsor is turned on. > > > On Jul 9, 9:02 pm, Mauricio Scheffer <[email protected]> > > wrote: > > > > To register and add parameters programmatically, take a look at the > > > fluent registration > > > API:http://using.castleproject.org/display/IoC/Fluent+Registration+API > > > > In your case, it would like this: > > > > Register(Component.For<HomeController>().Named > > > ("home.controller").Parameters(Parameter.ForKey("fileName").Eq > > > ("Vendordb"))); > > > > On Jul 9, 9:08 pm, BlessYAHU <[email protected]> wrote: > > > > > Have a monorail project where I'm trying to use Windsor Integration. > > > > The controllers are sitting in a seperate folder. Here's the > > > > xml:http://pastebin.com/m304d129a > > > > > When I add the controller from the web app container, that works, but > > > > I don't know how to add parameters. How do you add parameters when > > > > adding a component programmatically this way, and how do you get > > > > Monorail's Windsor Integration to look at the config file? > > > > > public class WebAppContainer : WindsorContainer > > > > { > > > > public WebAppContainer() : base( new XmlInterpreter( new > > > > ConfigResource() ) ) > > > > { > > > > RegisterFacilities(); > > > > RegisterComponents(); > > > > } > > > > > protected void RegisterFacilities() > > > > { > > > > > AddFacility( "rails", new RailsFacility() ); > > > > } > > > > > protected void RegisterComponents() > > > > { > > > > > AddComponent<HomeController>("home.controller"); > > > > } > > > > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---
