Well, as it turns out, I will have to have multiple css classes for
the box on a single page, so multiple stylesheets that redefine css
classes is no longer an option. I will place all the css classes in a
single stylesheet. My question now is how do I switch the css class
of a component based on a property of that component? Can I do
something along the following:
<div jwcid="@Any" class="ognl:selectedStylesheet">
...
</div>
Is there a better way of doing this?
On 2/27/06, Pablo Ruggia <[EMAIL PROTECTED]> wrote:
> Sorry Anthony, I've totally misread your mail. Forget about my last mail.
>
> On 2/27/06, Pablo Ruggia <[EMAIL PROTECTED]> wrote:
> >
> > 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]
> > >
> > >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]