I like the Idea.
Just two little tweaks. Instead of managing lists, I would prefer create
some abstraction like a "Theme" that knows wich stylesheets to include.
Second, passing from page to page the Theme would be too expensive (in terms
of programmers brain). You should store it in the session, so any can get
and change it.

On 2/27/06, Phillip Rhodes <[EMAIL PROTECTED]> wrote:
>
>
>
> Hopefully, someone will have a better idea than mine.
>
> You can bind your shell component to a component (like your border) to get
> it's stylesheets. Your border could have a method that reads a list
> property and converts it into a stylesheet asset array. Your border
> component could store a list of active stylesheets for the request and
> your components could add stylesheets to this list.
>
> Somehow, you need to pass this list around from your shell component to
> your other components.
>
> Please someone just in and join in the discussion!
>
>
>
>
>
> > Hi,
> >
> > I have multiple stylesheets that define the way a particular box can
> > look on my page.  I have a component that has a need of selecting
> > which stylesheet to use based on a property of the component's class.
> > Only the color scheme of the box will change based on the stylesheet.
> > Has anyone done something like this before?  What is the best way of
> > including a variable stylesheet specified in a component into the page
> > header?
> >
> > Thanks,
> > Anthony
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to