html.BeginForm()

2009-05-12 Thread AHM
Hey! I am using Brail as a view engine for my asp.net/mvc project, so perhaps this forum is the wrong place to ask, but I'm giving it a try anyway, perhaps someone knows something. I am trying to convert this piece of C# / webform code to Boo Brail: % using (Html.BeginForm(Logout, Users)) {%

Re: Suggest a way to obtain Windsor Container from model

2009-05-12 Thread Tuna Toksoz
Inject the container? .AddComponentInstance(typeof(IWindsorContainer),container); Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Wed, May 13, 2009 at 7:00 AM, dnagir dna...@gmail.com wrote:

Re: Suggest a way to obtain Windsor Container from model

2009-05-12 Thread Ken Egozi
Who is creating instances of your entities? ActiveRecord? NH? anything else? you can setup NH so that it will use Windsor to create entities that came from the DB, and it would wire the dependencies as usual. for new entities, you'd ask them from Windsor, again recieving all needed services in

How to inject HttpBaseContext

2009-05-12 Thread Tiendq
You know in many case we will need access to HttpContext, HttpRequest... objects from other layers (other components), not just in web presentation layer. I don't want these code are coupled with these above object by using, for example, HttpContext.Current.Request.propertyname. How can I inject