Re: IHandlerSelector accessing resolve parameters

2010-04-13 Thread Felix Gartsman
and then resolve the one it wants. On 2010-04-10 19:45, Felix Gartsman wrote: But ISubDependencyResolver doesn't get access to a list of matching handlers (IPageTypeRenderer). On Apr 10, 7:30 pm, Krzysztof Ko mickrzysztof.koz...@gmail.com wrote: Yeap, my bad. Try ISubDependencyResolver

IHandlerSelector accessing resolve parameters

2010-04-10 Thread Felix Gartsman
Hi, I''m writing a CMS (yes I know about Joomla, Drupal, etc...:). The CMS has multiple page types - article, event, product, etc... I've components that render those pages. Each page type has multiple templates (not only theming, but things like 'show related products', which require extra

Re: IHandlerSelector accessing resolve parameters

2010-04-10 Thread Felix Gartsman
But ISubDependencyResolver doesn't get access to a list of matching handlers (IPageTypeRenderer). On Apr 10, 7:30 pm, Krzysztof Koźmic krzysztof.koz...@gmail.com wrote: Yeap, my bad. Try ISubDependencyResolver then On 2010-04-10 18:05, Felix Gartsman wrote: Hi, I''m writing a CMS (yes I

Castle ATM with MR/ASP.NET MVC usage scenario

2009-04-16 Thread Felix Gartsman
Hello, I'm trying to improve my save/update entity handling scenario by using ATM. Now I use the following pseudo-method: Save(Entity e) success = false if(e.IsValid) start trans try e.Save commit success = true catch ... end if not success flash[xxx] = e redirect back

Re: Where/how to register per-request objects

2009-04-07 Thread Felix Gartsman
You can create child container per-request, and register additional components there. On Apr 7, 6:18 pm, Paul Hatcher pa...@grassoc.co.uk wrote: I have an hand-rolled ASP.NET MVP framework and I would like to use Windsor to create the presenters which take a combination of views (user

Re: Clearing Cache when using Cache Attribute in Controller

2009-02-26 Thread Felix Gartsman
Check http://learn.iis.net/page.aspx/154/iis-7-output-caching/ and http://blogs.iis.net/bills/archive/2007/05/02/iis7-output-caching-for-dynamic-content-dramatically-speed-up-your-asp-and-php-applications.aspx Basically you set the normal caching headers and configure IIS. If IIS decides it's

Re: Service override keys

2009-01-14 Thread Felix Gartsman
wrote: Your code seems right. It all comes down to the precedence order of overrides vs inline dependencies. The inline dependencies support seems half-baked.. What happens if you remove the ${} from the config file? On Tue, Jan 13, 2009 at 9:16 AM, Felix Gartsman garts...@gmail.com wrote: Hi

Re: Service override keys

2009-01-14 Thread Felix Gartsman
... Inline dependencies are for 'child' components too afaik. What happens if you do new { myParam = 7} (and put the ${} back in the config) On Jan 14, 10:11 am, Felix Gartsman garts...@gmail.com wrote: I get 7 as expected. Also changing new { myParam2 = new MyClass(7)} to new { myParam

Re: monorail strongly typed template helpers

2009-01-14 Thread Felix Gartsman
1 - saveFiles - save the generated C# code files. Useful to see compilation errors origin, set false for production. autoRecompilation - recompile on file change. Great for development. For production set false and pre-build with VCompile. Otherwise file changes will re- start IIS and bye-bye

Service override keys

2009-01-13 Thread Felix Gartsman
Hi, Could someone clarify what I'm doing wrong here? As an example consider 2 dummy classes: internal class MyClass { private readonly int myParam; public MyClass(int myParam) { this.myParam = myParam; } public int MyParam { get {

Re: Url Localization

2008-10-13 Thread Felix Gartsman
I've used 3 methods: 1. Sub-domains 2. /xx/path 3. As the site extension - /../create.xx and of course you always have query string. Cookies screw crawlers, so they are limited use, just to redirect. On Oct 13, 8:32 pm, Mark Jensen [EMAIL PROTECTED] wrote: Hi Not sure Url Localization is the