Perhaps I'm just being a bit a slow where - but where would the portable
area author register his routes in his portable area assembly - and how
would he register them before say routes which are registered in global
asax.  I like the idea of being able to disable a portable area (i.e. remove
it's assembly) without having to recompile the application...

Perhaps it's best left for a discussion after the code is up for review - I
suspect I'm just talking at cross-purposes.

Cheers,

 - Alex

On Fri, Mar 19, 2010 at 11:28 AM, James Curran <[email protected]>wrote:

> The portable-ness of the controller shouldn't affect routing.   If a
> portable-area writer wishes to add routing, it should work.
>
> I didn't explicitly mention it since I figured routing would generally
> be defined by the hosting website.
>
>
> Truth,
>     James
>
>
>
> On Thu, Mar 18, 2010 at 2:35 PM, Alex Henderson <[email protected]>
> wrote:
> > I didn't see any mention of routes?
> >
> > (And of course, routes need to be registered in reverse... so global app
> > routes registered last)
> > On Thu, Mar 18, 2010 at 1:04 PM, James Curran <[email protected]>
> > wrote:
> >>
> >> Since the subject was brought up a couple days ago, I've been working
> >> on implemeting Portable Areas in Monrail.  I think I've got a fully
> >> function example ready.  I'll have it up in CastleContrib soon, but
> >> first I want to make sure that it does everything it's supposed to.
> >>
> >> - The example is a controller handling three pages, a layout, an image
> >> and a css file.
> >>
> >> - The example is a single assembly, with all views, and other files as
> >> embedded resources.
> >>
> >> - That assembly can be integrated into a existing MR website (I used
> >> the CastleContrib ViewComponent TestSite), by just dropped the single
> >> assembly into the bin folder, and added a line to the web.config.
> >>
> >> -The layouts & views are read from the resources automatically.  From
> >> the application POV, it's just like if there were individual files
> >> there.
> >>
> >> - The embedded views can be local overridden, just by create an
> >> appropriate view template.
> >>
> >> - Embedded file can be referenced by just {siteRoot}/{Controller}/
> >> {filename}.rails,
> >> e.g.   Displaying yourPic.png is just "http://example.com/MyWidget/
> >> yourPic.png.rails"
> >>
> >>
> >> Any feature that this is supposed to have that's missing?
> >>
> >>
> >> Here's the entire controller code for my example:
> >>
> >> [Layout("default","patest")]
> >> public class PATest : PortableAreaController
> >> {
> >>        public void Page1()
> >>        {       }
> >>        public void Page2()
> >>        {               }
> >>        public void Page3()
> >>        {               }
> >> }
> >>
> >> PortableAreaController base class handles all the magic.  Of the
> >> layouts, "patest" is embedded, and "default" refers to the one in the
> >> hosting website.
> >>
> >>
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Castle Project Users" group.
> >> To post to this group, send email to
> >> [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<castle-project-users%[email protected]>
> .
> >> For more options, visit this group at
> >> http://groups.google.com/group/castle-project-users?hl=en.
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Castle Project Users" group.
> > To post to this group, send email to
> [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<castle-project-users%[email protected]>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/castle-project-users?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To post to this group, send email to [email protected]
> .
> To unsubscribe from this group, send email to
> [email protected]<castle-project-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to