Re: Replacing DefaultActionSelector

2011-02-26 Thread Colin Ramsay
://groups.google.com/group/castle-project-devel/browse_thread/thr... As you can see nothing got decided! Cheers John On Feb 24, 11:24 pm, Colin Ramsay i...@colinramsay.co.uk wrote: Surely not, because the default implementation of SelectMethod just returns null... On Jan 13, 10

Re: Replacing DefaultActionSelector

2011-01-13 Thread Colin Ramsay
on MR2.1 Beta. On Jan 12, 8:54 pm, Mauricio Scheffer mauricioschef...@gmail.com wrote: Have you tried adding it directly to Windsor instead of implementing IMonoRailContainerEvents? -- Mauricio On Wed, Jan 12, 2011 at 2:48 PM, Colin Ramsay i...@colinramsay.co.ukwrote: I'd like

Replacing DefaultActionSelector

2011-01-12 Thread Colin Ramsay
I'd like to select a different action based on the parameters passed through. I can't actually work out how to replace the default action selector though. I have this class: public class CustomActionSelector : DefaultActionSelector { protected override MethodInfo

Re: Replacement for LinkTo() in FormHelper, HtmlHelper is deprecated, right?

2009-05-23 Thread Colin Ramsay
http://api.castleproject.org/html/M_Castle_MonoRail_Framework_Helpers_UrlHelper_Link.htm On Sat, May 23, 2009 at 10:51 AM, Kcube kanesh...@gmail.com wrote: Can i get the replacement for LinkTo() in FormHelper as HtmlHelper is deprecated.

Re: MonoRail and Tree View

2009-05-22 Thread Colin Ramsay
http://svn.castleproject.org:8080/svn/castle/trunk/MonoRail/Castle.MonoRail.Framework/ViewComponents/ http://svn.castleproject.org:8080/svn/castlecontrib/viewcomponents/trunk/Castle.MonoRail.ViewComponents/ On Fri, May 22, 2009 at 2:37 PM, the.email.tr...@gmail.com the.email.tr...@gmail.com

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread Colin Ramsay
I always have the config in logging.config in my application root, rather than in the app/web.config, I think that's a logging facility thing. You can actually enable log4net internal debugging to find out what's going on in there. Take a look at How do I enable log4net internal debugging? in

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread Colin Ramsay
think if you omit the configFile attribute then it just uses logging.config. On Wed, May 20, 2009 at 8:49 PM, Colin Ramsay colinram...@gmail.com wrote: I always have the config in logging.config in my application root, rather than in the app/web.config, I think that's a logging facility thing. You

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread Colin Ramsay
20, 2:52 pm, Colin Ramsay colinram...@gmail.com wrote: And actually, looking at your links, the coderant one says 3. Add the log4net config file to the root of the web application: and the one from the castle list specifies a config file in the facility configuration (facility id

Re: Trying to use log4net integration - what am I missing?

2009-05-20 Thread Colin Ramsay
a reference to log4net.dll or is the Castle.Facilities.Logging.Log4netIntegration sufficient? On May 20, 3:30 pm, Colin Ramsay colinram...@gmail.com wrote: That config is wrong, you need the configuration and log4net root elements. Here's a sample from one of my projects: ?xml version=1.0

Re: Monorail: Action of SmartDispatcherController after Filtering

2009-05-19 Thread Colin Ramsay
Why not just do everything in the filter then? On Tue, May 19, 2009 at 3:56 PM, Flominator flomina...@gmx.net wrote: Hi there, my aim: Localized navigation. I tried it the following way: - wrote an object ViewMenuItem that basically consists of strings representing links and label for

Re: MR View Engine Comparison

2009-05-14 Thread Colin Ramsay
-Transfer-Encoding: quoted-printable In-Reply-To: 16ed1637$393c846a$2f9f58...@com References: 16ed1637$393c846a$2f9f58...@com From: Colin Ramsay colinram...@gmail.com Date: Thu, 14 May 2009 16:37:31 +0100 Message-ID: 623c594a0905140837y5e573ba2jcc8fc9853804...@mail.gmail.com Subject: Re: MR View

Re: How to store session object with monorail?

2009-05-13 Thread Colin Ramsay
It's exactly the same usage: Session[item] = item; If it's throwing null refs then there's something else going wrong. On Wed, May 13, 2009 at 9:28 AM, Mike Nichols nichols.mik...@gmail.com wrote: in Controller I think Context.Session... are you trying to do something in an handler? On

Re: Good tutorial's on castle monorail

2009-05-13 Thread Colin Ramsay
Thanks for the link. You can also go directly to the Monorail category: http://colinramsay.co.uk/diary/category/monorail/ It's been a while since I've posted anything on MR, I'm using ASP.NET MVC in my new projects. On Wed, May 13, 2009 at 10:05 AM, Wayne Douglas wa...@codingvista.com wrote:

Re: Windsor, FluentNH - Web

2009-04-25 Thread Colin Ramsay
http://mikehadlow.blogspot.com/2009/01/integrating-fluent-nhibernate-and.html On Sat, Apr 25, 2009 at 5:12 PM, Wayne Douglas wa...@codingvista.com wrote: Can anyone point me to a good tutorial/example of using Windsor + FluentNH +  in a web environment? -- Cheers, w://

Re: MonoRail + ActiveRecord + DOJO + Big Error on post = Build 1080

2009-04-22 Thread Colin Ramsay
What is actually being sent to the server when dojo.xhrPost runs? You can use Firebug or Fiddler to check this. Look at this line from your stack trace: Could not convert parameter with value 'System.String[]' to expected type System.Int64 This could indicate that you may be sending more than

Re: rounded corners in monorail views

2009-04-20 Thread Colin Ramsay
http://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-work On Mon, Apr 20, 2009 at 2:28 PM, Wayne Douglas wa...@codingvista.com wrote: Out of interest - why would that matter? On Mon, Apr 20, 2009 at 2:22 PM, Ben Lovell benjamin.lov...@gmail.com wrote: On Mon, Apr 20,

Re: Monorail + Windsor + NHibernate = Slow Startup

2009-04-17 Thread Colin Ramsay
Use a profiler to determine where the problem lies. On Fri, Apr 17, 2009 at 3:20 PM, crimsondr bch...@gmail.com wrote: Hi all, I use monorail with windsor and nhibernate.  I have many services and many model classes which makes both windsor and nhibernate take a long time to start up.

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

Re: BaseControllerTest and logging

2009-03-24 Thread Colin Ramsay
Logging is set up as a Monorail service: http://castleproject.org/monorail/documentation/trunk/index.html I guess your problem is due to the fact that the services have not been initialised as you are not running the full MR pipeline when you call the controller through tests. Because of this

Re: nvarchar vs. varchar - ColumnType

2009-02-25 Thread Colin Ramsay
NH docs would be a good place to look http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/mapping.html#mapping-types-basictypes On Wed, Feb 25, 2009 at 9:16 PM, jasonsirota jsir...@theknot.com wrote: I found the answer from a colleague, AnsiString but I still can't find the

Re: [NOOB Q] RoutingModuleEx reference problem

2009-02-02 Thread Colin Ramsay
It's PatternRoute not PatternRule. On Mon, Feb 2, 2009 at 11:58 AM, Wayne Douglas wa...@codingvista.com wrote: Hey Trying to use RoutingModuleEx and I can't find what I'm supposed to reference to use the PatternRule. I've grepped the trunk but can't find anything - probably a really dumb q

Re: Having a problem with postback on my Monorail page

2009-01-29 Thread Colin Ramsay
Could be because you're doing a redirect in load.rails which will return a 301/302 code rather than 200, so onSuccess never gets called. onComplete would though. On Thu, Jan 29, 2009 at 9:35 PM, M Kenyon II qwert...@yahoo.com wrote: K, I don't know where to start with this, but I'll give as

Re: ActiveRecord and Pagination with large resultsets

2009-01-28 Thread Colin Ramsay
SlicedFindAll? On Wed, Jan 28, 2009 at 2:50 PM, rjlopes rjlo...@gmail.com wrote: Hi, what is the best way to use the PaginationHelper with large resultsets (houndreds of thousands of objects)? The examples I saw used FindAll() with doesn't seems very efficient unless some king of lazy

Re: How to do DDD + AR (repositories)

2009-01-26 Thread Colin Ramsay
Well you wouldn't necessarily have to make a repo for every entity because you'd have a generic RepoT you could use. However you might create (as an example) a UserRepo : BaseRepoUser with a FindByUsername method as a little syntactic sugar. I think many people would use a container such as

Re: NewtonsoftJSONSerializer dataset issue

2009-01-14 Thread Colin Ramsay
That library isn't part of Castle, it's a separate project which Castle leverages. Try their homepage: http://www.codeplex.com/Json On Wed, Jan 14, 2009 at 4:36 PM, Wayne Douglas wa...@codingvista.com wrote: Hey All (just posted this in the forum - thought it might not get picked up there so

Re: NewtonsoftJSONSerializer dataset issue

2009-01-14 Thread Colin Ramsay
Just do a loop and build it manually! On Wed, Jan 14, 2009 at 4:54 PM, Wayne Douglas wa...@codingvista.com wrote: OK - how does everyone manage executing a sproc to return the results as json? This must be a workflow used _everywhere_? w:// 2009/1/14 Colin Ramsay colinram...@gmail.com

Re: AR - issue with removing an item from a HasMany relation

2009-01-12 Thread Colin Ramsay
the object I get the above error On Jan 12, 2:04 pm, Colin Ramsay colinram...@gmail.com wrote: You need the column in the DB but you don't need the property on the post object. On Mon, Jan 12, 2009 at 12:44 PM, Mark Jensen don...@gmail.com wrote: Because if I remove the property(and ofcouce

Re: AR/NH Left Outer Join not work

2008-12-16 Thread Colin Ramsay
If you feel it's an NHibernate problem then go to an NHibernate list such as http://groups.google.com/group/nhusers and see if they can solve your problem... On Tue, Dec 16, 2008 at 4:27 PM, Gabriel Mancini de Campos gabriel.manc...@gmail.com wrote: Guys, I found something really bad. see

Re: How to debug my .rails page?

2008-12-10 Thread Colin Ramsay
Looks to me like you're trying to use a property ID on a KeyValuePair: System.MissingMethodException: Method 'System.Collections.Generic.KeyValuePair{bla bla bla}.ID' not found There is no ID property on a KVP. On Wed, Dec 10, 2008 at 4:55 PM, M Kenyon II [EMAIL PROTECTED] wrote: I'm getting

Re: Layout hook

2008-12-08 Thread Colin Ramsay
A filter? On Mon, Dec 8, 2008 at 10:44 PM, Jan Limpens [EMAIL PROTECTED] wrote: Hello, for MR on a project, I have a BaseController and on it's Initialize method, I used to pull some data I used on every page. That was nice for a while, but recently I started to return a lot of Json and

Re: CastleContrib ViewComponents version 632

2008-12-01 Thread Colin Ramsay
Sitemaps can be framework-independent if you write your own provider: http://msdn.microsoft.com/en-us/library/aa479320.aspx And the MenuViewCompoent doesn't use two libraries, it uses jQuery *OR* Prototype, with Scriptaculous providing animation for Prototype. On Mon, Dec 1, 2008 at 1:20 PM,

Re: Routing Documentation Effort

2008-11-24 Thread Colin Ramsay
. In that case I definitely didn't map *. On Mon, Nov 24, 2008 at 2:28 PM, Jimmy Shimizu [EMAIL PROTECTED] wrote: Don't you need to map * as handler in order to use site-root routing? Colin Ramsay wrote: Additionally on this, if I change my application extension to .aspx then the Default.aspx

Re: Routing Documentation Effort

2008-11-24 Thread Colin Ramsay
Do you actually have a physical default.aspx page? On Mon, Nov 24, 2008 at 2:35 PM, Ken Egozi [EMAIL PROTECTED] wrote: I mapped .aspx to .net (very shared-hosting friendly), then had a rule from /default.aspx to home/index.aspx On Mon, Nov 24, 2008 at 4:32 PM, Colin Ramsay [EMAIL PROTECTED

Re: Routing Documentation Effort

2008-11-24 Thread Colin Ramsay
the Url smaller than 2 tokens error. I'm using IIS 5.1 on XP though On Mon, Nov 24, 2008 at 3:07 PM, Ken Egozi [EMAIL PROTECTED] wrote: it's the default document in IIS and there's an empty file with that name in the root. fools IIS6 On Mon, Nov 24, 2008 at 4:42 PM, Colin Ramsay [EMAIL

Re: Routing Documentation Effort

2008-11-24 Thread Colin Ramsay
file exists? On Mon, Nov 24, 2008 at 3:34 PM, Colin Ramsay [EMAIL PROTECTED] wrote: ah, right, yes - I was able to get it to work with the old routing as I said. For reference, I just tried my below setup on IIS6 / Server 2003 and still got the Url smaller than 2 tokens. On Mon, Nov 24, 2008

Re: Routing Documentation Effort

2008-11-23 Thread Colin Ramsay
for my application is .ashx at the moment. On Wed, Nov 19, 2008 at 9:49 PM, Colin Ramsay [EMAIL PROTECTED] wrote: I think it would definitely be of benefit to try and state the problem to provide context to the rest of the documentation, if nothing else, and if that helps define a better solution

Microkernel Fluent Registration API Documentation

2008-11-23 Thread Colin Ramsay
As with the Routing documentation, I am going to build up a documentation page on using.castleproject.org which details how to use fluent component registration, after which I will submit a patch to enter it into the Castle docs. I would really appreciate any assistance anyone could give here:

Re: Routing Documentation Effort

2008-11-23 Thread Colin Ramsay
requesting a static file, so we skip routing altogether } On Sun, Nov 23, 2008 at 4:34 PM, Colin Ramsay [EMAIL PROTECTED] wrote: I'm still working on this documentation as I think it's useful to have something down even if it's going to change in future. I'm looking at the default rule

Re: Routing Documentation Effort

2008-11-19 Thread Colin Ramsay
a supposedly agile environment? I'm not sure. What I know is that I've spent many hours writing and refactoring the routing stuff without a clear and agreeable definition of the whole problem space. Thoughts? On Wed, Nov 19, 2008 at 5:54 AM, Colin Ramsay [EMAIL PROTECTED] wrote: -- Cheers

Routing Documentation Effort

2008-11-17 Thread Colin Ramsay
Hi all, I've just started working with the RoutingEngineEx and noticed there isn't any documentation for this outside of blog posts and suchlike. I've started a page on using.castleproject.org: http://using.castleproject.org/display/MR/Routing+Overview When I have fleshed it out a little more

Re: building with .net 3.5

2008-11-13 Thread Colin Ramsay
Good luck Jan, we're all rooting for you but remember to take the proper precautions before you give your computer a rightlick again. On Thu, Nov 13, 2008 at 4:42 PM, Jan Limpens [EMAIL PROTECTED] wrote: some updates in my quest: I found a bootcamped xp install on one of my minnies :) with vs

Monorail Session Loss

2008-11-05 Thread Colin Ramsay
Help! I must be completely thick, can anyone suggest why my session is being lost between requests? It only seems to be in release mode. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To

Re: where is Machine Migrations project?

2008-10-29 Thread Colin Ramsay
The second most recent entry on the eleutian blog gives details: http://blog.eleutian.com/2008/10/22/MachineHasMoved.aspx I think this is the project you're after: http://github.com/machine/machine/tree/e9b7e763b453e306737ae63ca3722c41f4c85639/Source/Migrations On Wed, Oct 29, 2008 at 11:53

Re: building with .net 3.5

2008-10-27 Thread Colin Ramsay
I built the latest 3.5 last week with no problems. I'm sorry you're having problems, but that doesn't mean everyone is seeing the same issues. On Mon, Oct 27, 2008 at 4:19 PM, Jan Limpens [EMAIL PROTECTED] wrote: I have no problems with 3.5, in fact I am using 3.5 all over. I just wonder how

Re: NHibernate Facility Interceptors

2008-10-22 Thread Colin Ramsay
just contains the NH facility config. I'm a bit baffled. On Wed, Oct 22, 2008 at 7:02 PM, Germán Schuager [EMAIL PROTECTED] wrote: http://gschuager.blogspot.com/2008/04/nhibernatesearch-with.html On Oct 21, 7:45 pm, Colin Ramsay [EMAIL PROTECTED] wrote: Hi all, What's the best way to set up

Re: Logger initialization for MonoRail controller.cs

2008-10-07 Thread Colin Ramsay
Have you got the logging.config set up? Does logging work for you elsewhere in your code? On Tue, Oct 7, 2008 at 1:17 AM, [EMAIL PROTECTED] wrote: I am currently using the Trunk and I was trying to turn on logging to research Controller.DeliverEmail(Message message) method, and noticed that

Monorail: get the UserAgent

2008-09-08 Thread Colin Ramsay
Hi, Is there any way to get the current useragent without having to go to the UnderlyingContext? Thanks, Colin. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group,

Re: AR/NH: How to sort by a column in a related table?

2008-09-07 Thread Colin Ramsay
I've had mixed results with this, I think there must be a specify way of setting up your mappings to enable this. On Sun, Sep 7, 2008 at 3:35 PM, Tuna Toksöz [EMAIL PROTECTED] wrote: I think this is possible with Criteria, too. On Sun, Sep 7, 2008 at 5:31 PM, Ron Grabowski [EMAIL

Re: SOS: Could not find dialact in configuration

2008-08-29 Thread Colin Ramsay
That was a pretty widely documented change from NH 1.2 to 2.0 I think. On Fri, Aug 29, 2008 at 10:56 AM, goodwill [EMAIL PROTECTED] wrote: :( I want better docs It's just real pain. On Aug 29, 5:54 pm, Ken Egozi [EMAIL PROTECTED] wrote: lose the hibernate. bit off the config keys. On