Re: basic ViewComponent question

2009-04-16 Thread Jan Limpens
darn, seems this does not work (or nobody does know how...)... 2009/4/15 Jan Limpens jan.limp...@gmail.com so, just to make this extra clear, what I posted earlier _was_ the viewcomponent's view code. this is how I call it in the view %component Tile, {...@entity: item}: %

Re: basic ViewComponent question

2009-04-16 Thread Jan Limpens
look at me, I am soo nasty! public override void Render() { CancelView(); RenderText(string.Format(@ div class='tile' div class='left' style='background-image: url({0})' a href='{1}'span{2}/span/a /div div class='right' p

Re: basic ViewComponent question

2009-04-16 Thread Colin Ramsay
I don't see why you can't use sections as Hammett suggested? Define a #top section and a #bottom section then render them using Context.RenderSection() and either Context.RenderBody() or another #body section. On Thu, Apr 16, 2009 at 3:55 PM, Jan Limpens jan.limp...@gmail.com wrote: look at me,

Re: Auto Scheduling

2009-04-16 Thread eyal
Sorry Im not sure why do I need to use win services with a remote web app. Can you please specify On Apr 16, 10:15 am, Chris Wright dhase...@gmail.com wrote: Yes. Oh, you want me to tell you about the idea I have to implement such a function, most likely. Use a windows service. On unix,

Re: Auto Scheduling

2009-04-16 Thread Juan Carlos Seguí - CAE
Title: Correo de Juan Carlos Seguí (CAE S.A.) And in the case of a web application? Now I have a windows service that calls a given action of my web app each certain time, but I don't know if thi is the best solution. Correo de Juan Carlos Seguí (CAE S.A.) Juan Carlos Seguí Dpto. I+D+i

Re: Auto Scheduling

2009-04-16 Thread Chris Wright
2009/4/16 eyal ebarda...@gmail.com: Sorry Im not sure why do I need to use win services with a remote web app. Can you please specify Win services is *the* way to execute scheduled tasks on windows. You have a scheduled task. You are executing it on Windows. You should use a windows service.

Re: Auto Scheduling

2009-04-16 Thread Wayne Douglas
Quartz On 4/16/09, Juan Carlos Seguí - CAE jcse...@cae.net wrote: And in the case of a web application? Now I have a windows service that calls a given action of my web app each certain time, but I don't know if thi is the best solution. Juan Carlos Seguí Dpto. I+D+i - CAE, S.A.

Re: Auto Scheduling

2009-04-16 Thread Tiago Soczek
http://using.castleproject.org/display/Contrib/Castle.Components.Scheduler On Thu, Apr 16, 2009 at 2:11 PM, eyal ebarda...@gmail.com wrote: Hi All, I am interested in building a controller that takes care of automated jobs on a daily bases. For example I want to send an email to an account

Re: Auto Scheduling

2009-04-16 Thread Colin Ramsay
If you are scheduling tasks to run, you should be using Task Scheduler and not a Windows Service. On Thu, Apr 16, 2009 at 6:56 PM, Chris Wright dhase...@gmail.com wrote: 2009/4/16 eyal ebarda...@gmail.com: Sorry Im not sure why do I need to use win services with a remote web app. Can you

Re: Auto Scheduling

2009-04-16 Thread Chris Wright
2009/4/16 Colin Ramsay colinram...@gmail.com: If you are scheduling tasks to run, you should be using Task Scheduler and not a Windows Service. But Task Scheduler doesn't, as far as I can tell, have WIX support. --~--~-~--~~~---~--~~ You received this message

Re: Auto Scheduling

2009-04-16 Thread eyal
Hi Colin, It seems that the Scheduled Task wizard performs its operation on windows applications. However I want the task to be performed on a remote app on my web site. Can I still use this wizard? Not sure how Thanks Eyal On Apr 16, 11:12 am, Colin Ramsay colinram...@gmail.com wrote: If you

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: Auto Scheduling

2009-04-16 Thread Tiago Soczek
I dont know any other tutorial, but you can study the test cases. On Thu, Apr 16, 2009 at 4:08 PM, eyal ebarda...@gmail.com wrote: Hi Tiago, The provided http://svn.castleproject.org:8080/svn/castlecontrib/scheduling/trunk/ url is a dead link. Do you have somthing more current? Also since

Re: basic ViewComponent question

2009-04-16 Thread Mike Nichols
Has this been fixed in Brail though? Like I said earlier if you call the render methods it was outputting directly to the stream even if you provided a TExtWriter instance. It looks like he is using Brail and that may be what the problem is... On Apr 16, 9:40 am, James Curran

Re: basic ViewComponent question

2009-04-16 Thread Jan Limpens
would that work if the body had other components in it or is this just for text (as the method name indicates)? 2009/4/16 James Curran james.cur...@gmail.com Derive from ViewComponentEx instead of ViewComponent. Then just PropertyBag[ChildOutput] = GetBodyText(); -- Truth, James

Re: Auto Scheduling

2009-04-16 Thread Ricardo Lopes
Some time ago i was also looking for this and i remember that i read something about problems with Quartz scheduled tasks on low traffic websites due to IIS recycles. So i ended up using a console app that is called by the windows scheduler. Hope it helps. 2009/4/16 Wayne Douglas

Circular Dependencies

2009-04-16 Thread Rohan
Hi guys, I am pretty new to the Castle project and I have a quick question about circular dependencies. I am trying to implement the MVPC design pattern using the following reference document http://www.martinhunter.co.nz/articles/MVPC.pdf This pattern requires the View to reference the

Re: Windsor -- Resolve When Dependency Is a Generic List

2009-04-16 Thread Victor Kornov
using Castle.MicroKernel.Resolvers.SpecializedResolvers.ListResolver ? On Fri, Apr 17, 2009 at 6:58 AM, Stuart Laughlin stu...@bistrotech.netwrote: I was surprised when I discovered that this test fails with a NotImplementedException originating from

Re: Windsor -- Resolve When Dependency Is a Generic List

2009-04-16 Thread Victor Kornov
Sorry, that ListResolver can satisfy IList dependency of services, that were registered individually. In your case, if you register several Foo services, RequiresGenericList's ctor dependency will be satisfied by said resolver. It will use individual Foo services in the container to create