Where to call project initialization methods (implementation methods call)

2009-05-22 Thread Kcube
I want to call the implementation for some of my class at runtime, this is done only once, where should i specify this will it work with Global.asax . But the application host details is need I need to access the monorial context for virtual directory implementation methods i.e. (monorail

Re: Is there any replacement for Global .asax in monorail?

2009-05-22 Thread Jimmy Shimizu
You can still use a global.asax even if you're using monorail. Kcube wrote: Is there any replacement for Global .asax in monorail? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group.

Re: Is there any replacement for Global .asax in monorail?

2009-05-22 Thread Jimmy Shimizu
I assume you would only know this on request-basis, since domain, protocol etc depends on how many bindings you have, and which binding the visitor accessed your site at. Otherwise, you need to inspect the configuration of the site. To get it on request-basis, you can either do it on

Is it possible to use redirectToUrl with out using the extension '.castle'

2009-05-22 Thread Kcube
Is it possible to use redirectToUrl with out using the extension '.castle' What i have is this RedirectToUrl(/Login/UserLogin.castle); Can i achieve this , I just dont want to hardcode the '.castle' extensin to code RedirectToUrl(/Login/UserLogin);

Re: Is it possible to use redirectToUrl with out using the extension '.castle'

2009-05-22 Thread Kcube
Thanks, So with RedirectToUrl (with out controller , action) it wont work with out extension. right? On May 22, 1:35 pm, Jimmy Shimizu jimmy.shim...@gmail.com wrote: Use Redirect(Login, UserLogin) Kcube wrote: Is it possible to use redirectToUrl with out using the extension '.castle'

Re: Is it possible to use redirectToUrl with out using the extension '.castle'

2009-05-22 Thread Jimmy Shimizu
It is, as the name implies, a redirect to a static url. If you want to take advantage of dynamic routing-rules, different extensions etc you need to use the other methods as Redirect(), RedirectToAction(), RedirectUsingRoute() Kcube wrote: Thanks, So with RedirectToUrl (with out controller ,

MonoRail and Tree View

2009-05-22 Thread the.email.tr...@gmail.com
Hello, Has anybody programmed a tree view for monorail, maybe a viewcomponent? I want one like is in this page http://using.castleproject.org/pages/listpages-dirview.action?key=MRopenId=425986 Can somebody share a code like that? It would be nice if there would be a repository of

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

ColumnType=StringClob still creates varchar(255)

2009-05-22 Thread Chris Sims
I am using Castle ActiveRecord accessing an MS Sql 2005 DB. I need a Text field, but when I use the following code: [Property(ColumnType=StringClob, Column = products_description)] public String Description { get; set; } The column ends up being created as a varchar(255). What

Re: ColumnType=StringClob still creates varchar(255)

2009-05-22 Thread Jimmy Shimizu
I believe you need to set Length, and it will use different types depending on the demand. In that case, you don't need to specify StringClob IIRC. Chris Sims wrote: I am using Castle ActiveRecord accessing an MS Sql 2005 DB. I need a Text field, but when I use the following code:

Re: ColumnType=StringClob still creates varchar(255)

2009-05-22 Thread Chris Sims
Is there a way to make the length unlimited for example : Length=Length.Unlimited ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to

re: ColumnType=StringClob still creates varchar(255)

2009-05-22 Thread Terry Massey
Did you use Active Writer to generate this code. if So I have ran into the same issue before. and the resolution was to change it to string I belive I will have to check my code when I get home tonight late. -- I am using Castle ActiveRecord

Re: ColumnType=StringClob still creates varchar(255)

2009-05-22 Thread Tuna Toksoz
Not sure if it makes you happy but you can write the corresponding sql type manually/ Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Fri, May 22, 2009 at 6:21 PM, Jimmy Shimizu

Re: ColumnType=StringClob still creates varchar(255)

2009-05-22 Thread Krzysztof Koźmic
I don't know about AR, but in bare NH you can set sql-type to varchar(max) (see here: http://kozmic.pl/archive/2009/05/19/storing-long-text-and-binary-blobs-with-nhibernate.aspx) Also you may set length=4001 to achieave the same effect. Krzysztof Chris Sims pisze: I am using Castle

Re: ColumnType=StringClob still creates varchar(255)

2009-05-22 Thread Jimmy Shimizu
Everything has an upper limit :) It's an integer, so use Int32.MaxValue if that makes you happy. Although I would restrict it to some sane value, depending on the target DB. Chris Sims wrote: Is there a way to make the length unlimited for example : Length=Length.Unlimited ?

Re: ColumnType=StringClob still creates varchar(255)

2009-05-22 Thread Chris Sims
Thank you everyone! Now I'm curious if the documentation at http://www.castleproject.org/activerecord/faq.html is incorrect? ColumnType=StringClob just doesn't seem to work as documented? On May 22, 10:26 am, Jimmy Shimizu jimmy.shim...@gmail.com wrote: Everything has an upper limit :) It's

Re: MonoRail and Tree View

2009-05-22 Thread Cesar Sanz
thanx, although no tree view, maybe is may chance to write that one. One thing I did notice is that the Contrib project do not compile.. I am using Vs2005 so, I opened the VS2005 solution file, there are missings files like MobileFilter.cs WhitespaceTransformFilter.cs It is using automatic

Re: MonoRail and Tree View

2009-05-22 Thread Jason Meckley
Monorail and view components are compatible with VS08 .net 3.5. I believe a 2.0 compatible version is available on a branch. the files are most likely missing from the VS05 solution because the solution has been updated to .net 3.5 with VS08. On May 22, 11:55 am, Cesar Sanz

Re: MonoRail and Tree View

2009-05-22 Thread Cesar Sanz
Thanx for replying Monorail and view components are compatible with VS08 .net 3.5. I believe a 2.0 compatible version is available on a branch. So, there is no use in keeping the vs2005 solution file in the trunk? the files are most likely missing from the VS05 solution because the solution has

Re: MonoRail and Tree View

2009-05-22 Thread Mauricio Scheffer
VS2005 is being dropped as far as I can see ( http://fisheye2.atlassian.com/changelog/castleproject?cs=5469 ) I would advise you to upgrade as soon as you can. It's possible that the VS2005 solution was accidentally left unmaintained, especially since it's not under continuous integration AFAIK.

Re: ColumnType=StringClob still creates varchar(255)

2009-05-22 Thread Bill Barry
StringClob should really map to NTEXT, not nvarchar(max) (although I am not sure what the difference is post sql 2005) Krzysztof Koźmic wrote: I don't know about AR, but in bare NH you can set sql-type to varchar(max) (see here:

Re: MonoRail and Tree View

2009-05-22 Thread Cesar Sanz
Do you mean, Vs2005 support will be death soon? BTW, this is a little confusing to me, why are there some many source code repositories?? I have donwloaded the http://svn.castleproject.org:8080/svn/castlecontrib/ trunk, but you mention another one from fisheye2, is there a way to unify this,

Re: MonoRail and Tree View

2009-05-22 Thread Mauricio Scheffer
There are two repositories: the project's repository and the contrib repository. For an explanation of what contrib means, see http://www.castleproject.org/others/contrib/index.html MonoRail2 was an experiment, it's dead now AFAIK. On May 22, 2:02 pm, Cesar Sanz the.email.tr...@gmail.com wrote:

Monorail validation on TextFieldValue

2009-05-22 Thread Mike Nichols
I'm applying validation to my forms and note that when I use Form.TextFieldValue(myTarget.Project,somevalue) the validation decorated on the object in PropertyBag[myTargetType] is failing, but when I just use Form.TextField(myTarget.Project) the validation JS is generated correctly. Is the lack