|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
MR routing pollHow do you like the current routing (ex)? What you dont like about it? What are you pet peeves or wishes? How could we improve it? -- Cheers, hammett http://hammett.castleproject.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollI mentioned this in an email once before I think... but mostly I don't like the way it works when supplying a route name to build a url, i.e. it silently fails and selects another route when there aren't enough/too many parameters for the route name supplied (i.e. it selects some other route matching those parameters) - for too few parameters I think it should throw an exception, and for too many it should just work and ignore the additional params. Also I have a plugin/module system for the current app I'm working on where users can enable/disable modules at runtime (which in turn inserts or removes routes, controllers, view source assemblies, services in the container etc.) - currently the out of the box implementation doesn't support removals, so I end up having to replace the RoutingModuleEx http handler to inject my own routing rule container - I don't mind doing that, but you can't easily inherit from the handler to override the service so it's a copy-paste job. Other then that perhaps some form of test/debug experience for routing would be nice - ah la http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx - like any rule's based engine it's easier to support if it can explain the selection/choice it made. Just some quick thoughts... Chez, - Alex On Wed, Sep 24, 2008 at 9:16 AM, hammett <hammett@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollAwesome feedback. Thanks Alex! On Tue, Sep 23, 2008 at 2:48 PM, Alex Henderson <bittercoder@...> wrote: > I mentioned this in an email once before I think... but mostly I don't like > the way it works when supplying a route name to build a url, i.e. it > silently fails and selects another route when there aren't enough/too many > parameters for the route name supplied (i.e. it selects some other route > matching those parameters) - for too few parameters I think it should throw > an exception, and for too many it should just work and ignore the additional > params. > > Also I have a plugin/module system for the current app I'm working on where > users can enable/disable modules at runtime (which in turn inserts or > removes routes, controllers, view source assemblies, services in the > container etc.) - currently the out of the box implementation doesn't > support removals, so I end up having to replace the RoutingModuleEx http > handler to inject my own routing rule container - I don't mind doing that, > but you can't easily inherit from the handler to override the service so > it's a copy-paste job. > > Other then that perhaps some form of test/debug experience for routing would > be nice - ah la > http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx - like any > rule's based engine it's easier to support if it can explain the > selection/choice it made. > > Just some quick thoughts... > > Chez, > > - Alex > > On Wed, Sep 24, 2008 at 9:16 AM, hammett <hammett@...> wrote: >> >> How do you like the current routing (ex)? >> >> What you dont like about it? >> >> What are you pet peeves or wishes? How could we improve it? >> >> >> >> -- >> Cheers, >> hammett >> http://hammett.castleproject.org/ >> >> > > > > > -- Cheers, hammett http://hammett.castleproject.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing poll> How do you like the current routing (ex)? Very much :) > What you dont like about it? So far I don't know of a way to map `the homepage`. I am still using the old routing engine plus a dummy default.aspx for that. while this works without problems, it feels like a hack. > What are you pet peeves or wishes? How could we improve it? CherryPy has a very nice simple default routing where http://site.com/buy/dog/poodle/black automagically maps to buy.dog(race, color) I think this makes a very nice default I'd prefer to define my routings as attributes on my controller/actions. I think, this is where this should happen, at least for windsor enabled projects. At best in a way, that I could localize them via resource files. -- Jan ___________________ jan@... www.limpens.com +55 (11) 3082-1087 +55 (11) 3097-8339 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollThat default routing idea is nice - I could see that working well for the app I'm building at the moment - I wonder if that is something that could be done by adding positional parameters - along the lines of: <controller>/<action>/<$1>/<$2> ... not sure quite how the binder would handle unnamed positional parameters though... On Wed, Sep 24, 2008 at 2:37 PM, Jan Limpens <jan.limpens@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollOn Tue, Sep 23, 2008 at 6:37 PM, Jan Limpens <jan.limpens@...> wrote: > So far I don't know of a way to map `the homepage`. > I am still using the old routing engine plus a dummy default.aspx for that. > while this works without problems, it feels like a hack. I'm sure this works. I've added this support. It wont work with VS' webserver, though, only with IIS. >> What are you pet peeves or wishes? How could we improve it? > > CherryPy has a very nice simple default routing where > http://site.com/buy/dog/poodle/black > automagically maps to > buy.dog(race, color) > > I think this makes a very nice default > > I'd prefer to define my routings as attributes on my > controller/actions. I think, this is where this should happen, at > least for windsor enabled projects. At best in a way, that I could > localize them via resource files. Fully noted. Thanks! There are a few things that makes MR/routing troublesome, but I'll save that for later. -- Cheers, hammett http://hammett.castleproject.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollJan In case you didn't see this post: http://groups.google.com/group/castle-project-devel/browse_thread/thread/cf6568d818518c5b/83d3520e1bc82535?lnk=gst&q=codegenerator+routing#83d3520e1bc82535 You can set attributes on actions and have your route definitions generated for you using the contrib codegenerator. L 2008/9/24 Jan Limpens <jan.limpens@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollI am running trunk from two days ago and the '/' pattern rule for homepage doesn't work for me. I'm on IIS7 and my tests pass but not when I runn the app. I futzed with it a while but couldn't get it to fly...but I digress as it might be on my end. Anyways,I'd like to see more consistency between the view creation of URLs (ie, using Url.For(..)) and those created from the RedirectSupport (code) scheme. Fortunately it is simple to overide the DefaulUrlBuilder and manage things that way. Dealing with nested areas is still odd,too. I eventually dropped areas to simplify my routes in my current app. I haven't looked at the .net routing yet but I do think it would be valuable to have that, even if for accessibility by new users. mike On Sep 23, 8:12 pm, hammett <hamm...@...> wrote: > On Tue, Sep 23, 2008 at 6:37 PM, Jan Limpens <jan.limp...@...> wrote: > > So far I don't know of a way to map `the homepage`. > > I am still using the old routing engine plus a dummy default.aspx for that. > > while this works without problems, it feels like a hack. > > I'm sure this works. I've added this support. It wont work with VS' > webserver, though, only with IIS. > > >> What are you pet peeves or wishes? How could we improve it? > > > CherryPy has a very nice simple default routing where > >http://site.com/buy/dog/poodle/black > > automagically maps to > > buy.dog(race, color) > > > I think this makes a very nice default > > > I'd prefer to define my routings as attributes on my > > controller/actions. I think, this is where this should happen, at > > least for windsor enabled projects. At best in a way, that I could > > localize them via resource files. > > Fully noted. Thanks! > There are a few things that makes MR/routing troublesome, but I'll > save that for later. > > -- > Cheers, > hammetthttp://hammett.castleproject.org/ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollThat's exactly the rule activated when you go to http://support.castleproject.org/ Unless it was broken recently, it should be working For the rest, thanks for your comments :-) On Wed, Sep 24, 2008 at 1:30 AM, Mike Nichols <nichols.mike.s@...> wrote: > > I am running trunk from two days ago and the '/' pattern rule for > homepage doesn't work for me. I'm on IIS7 and my tests pass but not > when I runn the app. I futzed with it a while but couldn't get it to > fly...but I digress as it might be on my end. > Anyways,I'd like to see more consistency between the view creation of > URLs (ie, using Url.For(..)) and those created from the > RedirectSupport (code) scheme. Fortunately it is simple to overide the > DefaulUrlBuilder and manage things that way. > Dealing with nested areas is still odd,too. I eventually dropped areas > to simplify my routes in my current app. > > I haven't looked at the .net routing yet but I do think it would be > valuable to have that, even if for accessibility by new users. > > mike > > > > > On Sep 23, 8:12 pm, hammett <hamm...@...> wrote: >> On Tue, Sep 23, 2008 at 6:37 PM, Jan Limpens <jan.limp...@...> wrote: >> > So far I don't know of a way to map `the homepage`. >> > I am still using the old routing engine plus a dummy default.aspx for that. >> > while this works without problems, it feels like a hack. >> >> I'm sure this works. I've added this support. It wont work with VS' >> webserver, though, only with IIS. >> >> >> What are you pet peeves or wishes? How could we improve it? >> >> > CherryPy has a very nice simple default routing where >> >http://site.com/buy/dog/poodle/black >> > automagically maps to >> > buy.dog(race, color) >> >> > I think this makes a very nice default >> >> > I'd prefer to define my routings as attributes on my >> > controller/actions. I think, this is where this should happen, at >> > least for windsor enabled projects. At best in a way, that I could >> > localize them via resource files. >> >> Fully noted. Thanks! >> There are a few things that makes MR/routing troublesome, but I'll >> save that for later. >> >> -- >> Cheers, >> hammetthttp://hammett.castleproject.org/ > > > -- Cheers, hammett http://hammett.castleproject.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollThat's interesting! How did you come around the order of the routings problem? Did you? Is it actually one? Usually one will have an 'order by complexity desc, controller.Name asc, action.Name asc'. Or am I mistaken (at least that's more or less what I am doing)? This should be possible to express in code. But why code generation? Shouldn't it be possible to generate the routing tree on runtime/appstart? Then I'd override anything I don't like and would be set with a lot less code. Just halluzinating... On Wed, Sep 24, 2008 at 5:27 AM, Lee Henson <lee.m.henson@...> wrote: > Jan > > In case you didn't see this post: > > http://groups.google.com/group/castle-project-devel/browse_thread/thread/cf6568d818518c5b/83d3520e1bc82535?lnk=gst&q=codegenerator+routing#83d3520e1bc82535 > > You can set attributes on actions and have your route definitions generated > for you using the contrib codegenerator. > > L > > 2008/9/24 Jan Limpens <jan.limpens@...> >> >> > How do you like the current routing (ex)? >> >> Very much :) >> >> > What you dont like about it? >> >> So far I don't know of a way to map `the homepage`. >> I am still using the old routing engine plus a dummy default.aspx for >> that. >> while this works without problems, it feels like a hack. >> >> > What are you pet peeves or wishes? How could we improve it? >> >> CherryPy has a very nice simple default routing where >> http://site.com/buy/dog/poodle/black >> automagically maps to >> buy.dog(race, color) >> >> I think this makes a very nice default >> >> I'd prefer to define my routings as attributes on my >> controller/actions. I think, this is where this should happen, at >> least for windsor enabled projects. At best in a way, that I could >> localize them via resource files. >> >> -- >> Jan >> ___________________ >> jan@... >> www.limpens.com >> +55 (11) 3082-1087 >> +55 (11) 3097-8339 >> >> > > > > > -- Jan ___________________ jan@... www.limpens.com +55 (11) 3082-1087 +55 (11) 3097-8339 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollThe routing engine is very convinient, I like the registration API it suits my need for a running site (needed a hack or two enabled by basic overriding). The idea from Jan is great about defining routing as controller/action attributes (asp.mvc still haven't simple controller area declaration) I tried System.Web.Routing but still use monorail routing because of it's goodness On Sep 23, 11:16 pm, hammett <hamm...@...> wrote: > How do you like the current routing (ex)? > > What you dont like about it? > > What are you pet peeves or wishes? How could we improve it? > > -- > Cheers, > hammetthttp://hammett.castleproject.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing poll2008/9/24 Jan Limpens <jan.limpens@...>
Ordering of rules is determined by the order of registration, as per normal.
I don't know if that would cover every scenario.
So you can do things like: var url = Routes.ShowProductDetails(arg1, arg2); ie. get type-safe methods for url generation. And you don't have to write your own route definitions: RoutingModelEx.Register(RouteDefinitions.ShowProductDetails). It's not for everyone, but it's working nicely for us. L
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollSounds nice, Remembers a bit those PageMethods on WebForms. On Thu, Sep 25, 2008 at 5:53 AM, Lee Henson <lee.m.henson@...> wrote: > > > 2008/9/24 Jan Limpens <jan.limpens@...> >> >> That's interesting! How did you come around the order of the routings >> problem? Did you? Is it actually one? > > Ordering of rules is determined by the order of registration, as per normal. > >> >> Usually one will have an 'order by complexity desc, controller.Name >> asc, action.Name asc'. Or am I mistaken (at least that's more or less >> what I am doing)? This should be possible to express in code. > > I don't know if that would cover every scenario. > >> >> But why code generation? Shouldn't it be possible to generate the >> routing tree on runtime/appstart? Then I'd override anything I don't >> like and would be set with a lot less code. > > So you can do things like: > > var url = Routes.ShowProductDetails(arg1, arg2); > > ie. get type-safe methods for url generation. And you don't have to write > your own route definitions: > > RoutingModelEx.Register(RouteDefinitions.ShowProductDetails). > > It's not for everyone, but it's working nicely for us. > > L > >> >> Just halluzinating... >> >> On Wed, Sep 24, 2008 at 5:27 AM, Lee Henson <lee.m.henson@...> >> wrote: >> > Jan >> > >> > In case you didn't see this post: >> > >> > >> > http://groups.google.com/group/castle-project-devel/browse_thread/thread/cf6568d818518c5b/83d3520e1bc82535?lnk=gst&q=codegenerator+routing#83d3520e1bc82535 >> > >> > You can set attributes on actions and have your route definitions >> > generated >> > for you using the contrib codegenerator. >> > >> > L >> > >> > 2008/9/24 Jan Limpens <jan.limpens@...> >> >> >> >> > How do you like the current routing (ex)? >> >> >> >> Very much :) >> >> >> >> > What you dont like about it? >> >> >> >> So far I don't know of a way to map `the homepage`. >> >> I am still using the old routing engine plus a dummy default.aspx for >> >> that. >> >> while this works without problems, it feels like a hack. >> >> >> >> > What are you pet peeves or wishes? How could we improve it? >> >> >> >> CherryPy has a very nice simple default routing where >> >> http://site.com/buy/dog/poodle/black >> >> automagically maps to >> >> buy.dog(race, color) >> >> >> >> I think this makes a very nice default >> >> >> >> I'd prefer to define my routings as attributes on my >> >> controller/actions. I think, this is where this should happen, at >> >> least for windsor enabled projects. At best in a way, that I could >> >> localize them via resource files. >> >> >> >> -- >> >> Jan >> >> ___________________ >> >> jan@... >> >> www.limpens.com >> >> +55 (11) 3082-1087 >> >> +55 (11) 3097-8339 >> >> >> >> >> > >> > >> > > >> > >> >> >> >> -- >> Jan >> ___________________ >> jan@... >> www.limpens.com >> +55 (11) 3082-1087 >> +55 (11) 3097-8339 >> >> > > > > > -- Jan ___________________ jan@... www.limpens.com +55 (11) 3082-1087 +55 (11) 3097-8339 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing pollI would like to see something similar to binsor with extensions... I run a multi tenant app and don't like having to setup the same routes over and over again. What about adding Container support to the attribute idea? That way we could define routes on the controller and override it in the container. On Sep 24, 4:02 pm, Gauthier Segay <gauthier.se...@...> wrote: > The routing engine is very convinient, I like the registration API > > it suits my need for a running site (needed a hack or two enabled by > basic overriding). > > The idea from Jan is great about defining routing as controller/action > attributes (asp.mvc still haven't simple controller area declaration) > > I tried System.Web.Routing but still use monorail routing because of > it's goodness > > On Sep 23, 11:16 pm, hammett <hamm...@...> wrote: > > > > > How do you like the current routing (ex)? > > > What you dont like about it? > > > What are you pet peeves or wishes? How could we improve it? > > > -- > > Cheers, > > hammetthttp://hammett.castleproject.org/- Hide quoted text - > > - Show quoted text - You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@... To unsubscribe from this group, send email to castle-project-devel+unsubscribe@... For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: MR routing poll> I > run a multi tenant app and don't like having to setup the same routes > over and over again Not sure I'm following you here... On Mon, Sep 29, 2008 at 11:49 AM, João Bragança <joao@...> wrote: > > I would like to see something similar to binsor with extensions... I > run a multi tenant app and don't like having to setup the same routes > over and over again. What about adding Container support to the > attribute idea? That way we could define routes on the controller and > override it in the container. > > On Sep 24, 4:02 pm, Gauthier Segay <gauthier.se...@...> wrote: >> The routing engine is very convinient, I like the registration API >> >> it suits my need for a running site (needed a hack or two enabled by >> basic overriding). >> >> The idea from Jan is great about defining routing as controller/action >> attributes (asp.mvc still haven't simple controller area declaration) >> >> I tried System.Web.Routing but still use monorail routing because of >> it's goodness >> >> On Sep 23, 11:16 pm, hammett <hamm...@...> wrote: >> >> >> >> > How do you like the current routing (ex)? >> >> > What you dont like about it? >> >> > What are you pet peeves or wishes? How could we improve it? >> >> > -- >> > Cheers, >> > hammetthttp://hammett.castleproject.org/- Hide quoted text - >> >> - Show quoted text - > > > -- Cheers, hammett |