Re: Testing a ViewComponent

2009-04-08 Thread Mike Nichols
John 1. I usually get references to Helpers using this: EngineContext.CurrentControllerContext.Helpers["Form"] (or something like that)...this is getting the same instance as found in your controller and you won't need to contextualize your helper. 2. I don't use the BaseViewComponentTest for tes

WCF Facility Programatical Creation of TCP Mex Endpoint

2009-04-08 Thread Maxus
Hi People, I'm trying to create a tcp mex end point, but just cant quite figure it out: I have looked at the unit tests to figure out how to create the service which works but I can't create a client due to complaints of there bing no meta data end point: What I have so far: using

[MonoRail] strategies for implementing dynamic view versionning

2009-04-08 Thread Gauthier Segay
I'm designing an application that will manage document approval lifecycle, it's very likely that MonoRail would be choosen as the web stack. I need to plan about versionning issues of document input and approval forms, theses forms will be available as read only for completed documents and the ap

Re: HasMany with Single Table Inheritance

2009-04-08 Thread Mark Jensen
Hi Rusty have you followed this example ? http://www.castleproject.org/activerecord/documentation/trunk/usersguide/typehierarchy.html /Mark On Apr 8, 3:58 pm, rusty wrote: > Hi all, > > I posted this in the forum before I saw that the forum was replaced by > the list. Sorry for the repost, bu

Re: Testing a ViewComponent

2009-04-08 Thread johnpoll...@googlemail.com
Ok, I've made a little progress. The problem is that the ControllerContext is null in the AbstractFormRelatedHelper. What I've done is stub the Context.CurrentControllerContext and create an empty propertybag within that. The formhelper is now a happy bunny. On Apr 8, 11:07 am, "johnpoll...@goo

HasMany with Single Table Inheritance

2009-04-08 Thread rusty
Hi all, I posted this in the forum before I saw that the forum was replaced by the list. Sorry for the repost, but anyway... I'm running into a bit of trouble making an association within single table inheritance work for me. The problem I'm running into is that when one class's HasMany relation

Re: New to ORM, questions about postgresql support, visual basic

2009-04-08 Thread Wayne Douglas
SSRS?!?! - HAHAHAHHA jokes yeah? No, seriously, hahhahahha oh man you're killing me... On Wed, Apr 8, 2009 at 2:34 PM, Colin Ramsay wrote: > > I think NHibernate projections and Transformers.AliasToBean would let > you pick out the columns you want and bring them back into an > arbitrary C# o

Re: New to ORM, questions about postgresql support, visual basic

2009-04-08 Thread Colin Ramsay
I think NHibernate projections and Transformers.AliasToBean would let you pick out the columns you want and bring them back into an arbitrary C# object. That's not to say this would be the best approach. I've even seen a method for using NHibernate to power SSRS, though why you'd want to inflict S

Re: New to ORM, questions about postgresql support, visual basic

2009-04-08 Thread Jason Meckley
>When describing llblgen -> nh/arAR - it's fair to assume we mean db first >design when saying that llblgen is database centric and ar is not.. >I think Yes, thank you for clarifying my statement. >I find the whole ORM thing comes crumbling a bit in this scenario - how does >everyone else deal

Re: New to ORM, questions about postgresql support, visual basic

2009-04-08 Thread Wayne Douglas
Stored procedures allow you to easilly shape data the way you need - very handy for reporting apps - I find the whole ORM thing comes crumbling a bit in this scenario - how does everyone else deal with reporting? w:// On Wed, Apr 8, 2009 at 2:05 PM, Mauricio Scheffer < mauricioschef...@gmail.com>

Re: New to ORM, questions about postgresql support, visual basic

2009-04-08 Thread Mauricio Scheffer
One of the main features of NHibernate and other ORMs is that they let you work against any RDBMS transparently. If you change the database engine, all you have to do is change a single line of configuration. This feature is also very convenient for testing (see http://ayende.com/Blog/archive/2006

Re: Where/how to register per-request objects

2009-04-08 Thread Paul Hatcher
Thanks for that - I think I'm about 80% of the way there now... One issue remaining is that the values passed into resolve via the dictionary are picked out according to name - is there anyway of having them picked out according to type instead by registering a custom resolver? Rationale is that

Re: Testing a ViewComponent

2009-04-08 Thread johnpoll...@googlemail.com
Hi Ken, In answer to your questions. a. I'm new-ing the helper as I need an instance of it within the ViewComponent. I see that the CaptchaComponent from the Castle Contrib project does the same thing. http://svn.castleproject.org:8080/svn/castlecontrib/viewcomponents/trunk/Castle.MonoRail.View

Re: Testing a ViewComponent

2009-04-08 Thread Ken Egozi
a. why are you new-ing the helper? they are all being created anyway by the framework. b. it appear that the failing call is ObtainRootInstance, with the target Id you supply to the TextField method. is there something in the PropertyBag that corresponds to fieldId in the test environment? On Wed

Testing a ViewComponent

2009-04-08 Thread johnpoll...@googlemail.com
I'm currently working on a ViewComponent however I'm struggling the testing side of things. The ViewComponent uses the FormHelper within it. formHelper = new FormHelper(EngineContext); and is creating a series of TextFields dynamically formHelper.TextField(fieldId) This works fine when runnin

Re: New to ORM, questions about postgresql support, visual basic

2009-04-08 Thread Wayne Douglas
When describing llblgen -> nh/arAR - it's fair to assume we mean db first design when saying that llblgen is database centric and ar is not.. I think :) w:// On Wed, Apr 8, 2009 at 9:12 AM, Tim TSH wrote: > AR is very database centric and totally not domain centric > > 2009/4/8 Jason Meckley

Re: New to ORM, questions about postgresql support, visual basic

2009-04-08 Thread Tim TSH
AR is very database centric and totally not domain centric 2009/4/8 Jason Meckley > > I have used LLBL in the past before discovering NH. LLBL is a great > tool for RAD development. The support is excellent, and the tools that > come with the framework itself are great. > > So why would I move a