Re: Natural key

2009-02-12 Thread Jimmy Shimizu
Wouldn't it be possible to have a [Field(some_auto_incrementing_field_in_db, Update = false)] public int OrderNumber; perhaps? I'm trying the Update = false thing right now myself, I'll let you know if I'm successful :) Martin Nilsson wrote: Number 1, is that possible with AR? I can't have

Re: Natural key

2009-02-12 Thread Martin Nilsson
I tried with Formula and update=false but no success Have to look into Formula a little bit more. On Thu, Feb 12, 2009 at 9:27 AM, Jimmy Shimizu jimmy.shim...@gmail.comwrote: Wouldn't it be possible to have a [Field(some_auto_incrementing_field_in_db, Update = false)] public int

Re: Natural key

2009-02-12 Thread Ayende Rahien
insert = false, update = false, generate = true. On Thu, Feb 12, 2009 at 10:43 AM, Martin Nilsson mffmar...@gmail.comwrote: I tried with Formula and update=false but no success Have to look into Formula a little bit more. On Thu, Feb 12, 2009 at 9:27 AM, Jimmy Shimizu

Re: Natural key

2009-02-12 Thread Jimmy Shimizu
Some times in life, answers just comes to you. I was just struggeling with a field being inserted, but only had Update = false. Completely unrelated to the original poster though. Thanks! Ayende Rahien wrote: insert = false, update = false, generate = true. On Thu, Feb 12, 2009 at 10:43 AM,

Re: Is this possible with Routing

2009-02-12 Thread Daniel Pupek
We have the parenthisese now. With the old routing. Tried it without...no luck On 2/12/09, Jimmy Shimizu jimmy.shim...@gmail.com wrote: why the parentheses? I assume your url is: /someGroupName/images/Banner800x600.png just skip the parentheses and it will work I believe. On 12 feb

Re: AR Native Query - type not initialized

2009-02-12 Thread Michał Staszewski
Ken Egozi pisze: The exception is quite informative. You need to specify the return types for the query, as you are not returning any NH object so NH does not now how to read the IDataReader. Now it's informative (earlier wasn't ;) ) Before I looked for sth with SetReturnType or similar. I

Re: Is this possible with Routing

2009-02-12 Thread Daniel Pupek
Just no match. I use /groupname/images/banner(100x100).png On 2/12/09, Jimmy Shimizu jimmy.shim...@gmail.com wrote: Well, try to explain what happens, no match? What url are you trying etc... exceptions? Daniel Pupek wrote: We have the parenthisese now. With the old routing. Tried it

Re: AR Native Query - type not initialized

2009-02-12 Thread Ken Egozi
I'm glad that it worked :) On Thu, Feb 12, 2009 at 11:43 AM, Michał Staszewski mailing...@gmail.comwrote: Ken Egozi pisze: The exception is quite informative. You need to specify the return types for the query, as you are not returning any NH object so NH does not now how to read the

Re: [Windsor] Passing a custom argument to a sub-dependency

2009-02-12 Thread Daniel Hölbling
Thank you all very much. I'll look at the source. On Wed, Feb 11, 2009 at 8:12 PM, G. Richard Bellamy rbell...@pteradigm.comwrote: s a combination of Factory and Resolve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Is this possible with Routing

2009-02-12 Thread Jimmy Shimizu
I'm not sure if the routing is case sensitive... but you have banner in your url and Banner in your route. Daniel Pupek wrote: Just no match. I use /groupname/images/banner(100x100).png On 2/12/09, Jimmy Shimizu jimmy.shim...@gmail.com wrote: Well, try to explain what happens, no

MonoRail redirect to # anchor

2009-02-12 Thread Grootj
Hello, I'm using Monorail with jQuery tabbed navigation (http:// docs.jquery.com/UI/Tabs). When handling a controller action, I would like to redirect to a view, and control which tab is visible. Therefore, I'd like to have my controller redirecting to a specific anchor in a view, something

Re: MonoRail redirect to # anchor

2009-02-12 Thread Jimmy Shimizu
I resorted to RedirectToUrl() since monorail doesn't seem to support anchors/hashes, only querystrings. This however doesn't work with routing. Grootj wrote: Hello, I'm using Monorail with jQuery tabbed navigation (http:// docs.jquery.com/UI/Tabs). When handling a controller action, I

Re: MonoRail redirect to # anchor

2009-02-12 Thread Jason Meckley
what if you redirect to http://localhost/MyApp/User/edit.rails?id=1 and then $(function() { set visible tab to [selected tab]; }); which would change to the appropriate tab once the page is ready. On Feb 12, 8:11 am, Jimmy Shimizu jimmy.shim...@gmail.com wrote: I resorted to RedirectToUrl()

Named Routes and HttpHandlers

2009-02-12 Thread Ricardo Lopes
Hi, I want to create a named route that rewrites the url to an handler that i declared on the web.config, for example: - Http Handler: *.stuff - Named route (to use on Helpers): route=dostuff params=id - Route Pattern: /do/stuff/id = id.stuff Can this be done with the default rules or do i have

Re: Handle Errors with Url Routing

2009-02-12 Thread eyal
That is exactly what I'm trying to get the RoutingRule class to do but without any success. I tried to use RedirectToAction(404) or RedirectToAction (generalerror) using Try Catch. I am getting the following error: The resource cannot be found. Description: HTTP 404. The resource you are

Re: Routing Pattern Rules Issue

2009-02-12 Thread eyal
Perfect. Works like a charm Thanks Eyal On Feb 11, 11:06 pm, Ken Egozi egoz...@gmail.com wrote: both rules are using the same pattern: SOME-STRING / SOME- STRING / SOME- INTEGER so the engine will match the first rule. you need to differentiate the two. say:

Re: Form isn't loading on grid selection

2009-02-12 Thread M Kenyon II
Hmm... still no response. Perhaps somebody could point me to some info about IsDefined. I googled 'Boo Isdefined' and 'Monorail isdefined', but got nothing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle

Re: Form isn't loading on grid selection

2009-02-12 Thread M Kenyon II
Correction, I found this: http://api.castleproject.org/html/M_Castle_MonoRail_Views_Brail_BrailBase_IsDefined.htm Tho, it's not much help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group.

Is there a way to find out what interceptors are attached to a Windsor component?

2009-02-12 Thread George Mauer
I want to find out if a component registered within Windsor has an interceptor attached (and which interceptor this is). How can I do this? Thanks a lot, George Mauer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Lost images after Routing

2009-02-12 Thread eyal
the extensions are available within fileId as such .../thumbb41cd7c4- dfd5-470c-b524-6a48e2928e93.jpg The image were working fine before I applied url routing Thanks Eyal On Feb 12, 9:52 am, mausch mauricioschef...@gmail.com wrote: Aren't you missing the extension? i.e.

activerecord writeonly properties

2009-02-12 Thread dawson
Hi, Just started using activerecord this week and think it's excellent. One thing I would like to do though is for a property to be write only. Specifically I have created a user object with a password property. I know how to decorate it so that you can specify to enable it for Inserts or

Re: What to do with a long running function

2009-02-12 Thread Tuna Toksoz
Run in transaction, set FlushMode to Commit. Tuna Toksöz http://tunatoksoz.com http://twitter.com/tehlike Typos included to enhance the readers attention! On Thu, Feb 12, 2009 at 11:50 PM, M Kenyon II qwert...@yahoo.com wrote: One of the pages I'm working with does an update/insert to the

Re: Natural key

2009-02-12 Thread Jimmy Shimizu
Maybe Generate only exists for PrimaryKey. I think it's better to resort to the DB-engine for the autoincrement. On 12 feb 2009, at 22:03, Martin Nilsson wrote: Where do I put this? Can't find the generate property. Is it possible with ActiveRecord or is it only possible with

Combine pagination with url routing

2009-02-12 Thread eyal
Hi All, Does anyone know how to combine url routing with pagination? Regular Pagination: #blockcomponent(DiggStylePagination with page=$products renderifonlyonepage=false) #link button type=button onclick=location.href='searchbypage.ashx?page=$pageIndex';$text/ button

Re: Is there a way to find out what interceptors are attached to a Windsor component?

2009-02-12 Thread Ayende Rahien
GetHandler(...).ComponentModel.Interceptors Although this wouldn't work if you have IModelInterceptorSelector defined. On Thu, Feb 12, 2009 at 8:57 PM, George Mauer gma...@gmail.com wrote: I want to find out if a component registered within Windsor has an interceptor attached (and which

Re: Natural key

2009-02-12 Thread Martin Nilsson
On Thu, Feb 12, 2009 at 9:50 AM, Ayende Rahien aye...@ayende.com wrote: insert = false, update = false, generate = true. Could it be this that Ayende is talking about? Chapter 5.1.9. property http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/mapping.html