changing style on the fly

5 messages Options
Embed this post
Permalink
kagan

changing style on the fly

Reply Threaded More More options
Print post
Permalink
Hi:

I'm using appfuse 2.0M5 and have the problem changing stylesheet on the fly.

For example I'm using andreas01 as a default style and if I'll type http://localhost:8080/login.jsp?theme=puzzlewithstyle I still will see the old style rendered.  I've tried to reload the page and run with exploded and war mode but no avail. I'd greatly appreciate if you'd be able to help me.

Sincerely,

Roman
mraible

Re: changing style on the fly

Reply Threaded More More options
Print post
Permalink
You have to login as an administrator to change the theme. The logic
is in LocaleFilter.java.

Matt

On 7/25/07, kagan <[hidden email]> wrote:

>
> Hi:
>
> I'm using appfuse 2.0M5 and have the problem changing stylesheet on the fly.
>
> For example I'm using andreas01 as a default style and if I'll type
> http://localhost:8080/login.jsp?theme=puzzlewithstyle I still will see the
> old style rendered.  I've tried to reload the page and run with exploded and
> war mode but no avail. I'd greatly appreciate if you'd be able to help me.
>
> Sincerely,
>
> Roman
> --
> View this message in context: http://www.nabble.com/changing-style-on-the-fly-tf4148549s2369.html#a11801720
> Sent from the AppFuse CSS mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

kagan

Re: changing style on the fly

Reply Threaded More More options
Print post
Permalink
That worked.  Thanks a lot for invaluable information. Glad to work with smart people like you.

RK


mraible wrote:
You have to login as an administrator to change the theme. The logic
is in LocaleFilter.java.

Matt

On 7/25/07, kagan <info@romankagan.com> wrote:
>
> Hi:
>
> I'm using appfuse 2.0M5 and have the problem changing stylesheet on the fly.
>
> For example I'm using andreas01 as a default style and if I'll type
> http://localhost:8080/login.jsp?theme=puzzlewithstyle I still will see the
> old style rendered.  I've tried to reload the page and run with exploded and
> war mode but no avail. I'd greatly appreciate if you'd be able to help me.
>
> Sincerely,
>
> Roman
> --
> View this message in context: http://www.nabble.com/changing-style-on-the-fly-tf4148549s2369.html#a11801720
> Sent from the AppFuse CSS mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@appfuse-css.dev.java.net
> For additional commands, e-mail: dev-help@appfuse-css.dev.java.net
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@appfuse-css.dev.java.net
For additional commands, e-mail: dev-help@appfuse-css.dev.java.net
kace-2

Re: changing style on the fly

Reply Threaded More More options
Print post
Permalink
In reply to this post by mraible
Hi,

is it then possible to have users each using a different theme from the same app? where would you set it so that userA logs in and has themeA and userB logs in and has themeB?

thankyou
kace

mraible wrote:
You have to login as an administrator to change the theme. The logic
is in LocaleFilter.java.

Matt

On 7/25/07, kagan <info@romankagan.com> wrote:
>
> Hi:
>
> I'm using appfuse 2.0M5 and have the problem changing stylesheet on the fly.
>
> For example I'm using andreas01 as a default style and if I'll type
> http://localhost:8080/login.jsp?theme=puzzlewithstyle I still will see the
> old style rendered.  I've tried to reload the page and run with exploded and
> war mode but no avail. I'd greatly appreciate if you'd be able to help me.
>
> Sincerely,
>
> Roman
> --
> View this message in context: http://www.nabble.com/changing-style-on-the-fly-tf4148549s2369.html#a11801720
> Sent from the AppFuse CSS mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@appfuse-css.dev.java.net
> For additional commands, e-mail: dev-help@appfuse-css.dev.java.net
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@appfuse-css.dev.java.net
For additional commands, e-mail: dev-help@appfuse-css.dev.java.net
mraible

Re: changing style on the fly

Reply Threaded More More options
Print post
Permalink
Yes, you'd simply need to change the LocaleFilter to store the theme
preference in the session instead of the ServletContext.

You could also look at the StylesheetSwitcher that's used in AppFuse Light.

http://demo2.appfuse.org/appfuse-light -> click on the image in the
bottom right to change themes.

http://burnfield.com/martin/2006/07/12/prototypish-style-sheet-switcher/

Matt

On 7/27/07, kace <[hidden email]> wrote:

>
> Hi,
>
> is it then possible to have users each using a different theme from the same
> app?
>
> thanks
> kace
>
>
> mraible wrote:
> >
> > You have to login as an administrator to change the theme. The logic
> > is in LocaleFilter.java.
> >
> > Matt
> >
> > On 7/25/07, kagan <[hidden email]> wrote:
> >>
> >> Hi:
> >>
> >> I'm using appfuse 2.0M5 and have the problem changing stylesheet on the
> >> fly.
> >>
> >> For example I'm using andreas01 as a default style and if I'll type
> >> http://localhost:8080/login.jsp?theme=puzzlewithstyle I still will see
> >> the
> >> old style rendered.  I've tried to reload the page and run with exploded
> >> and
> >> war mode but no avail. I'd greatly appreciate if you'd be able to help
> >> me.
> >>
> >> Sincerely,
> >>
> >> Roman
> >> --
> >> View this message in context:
> >> http://www.nabble.com/changing-style-on-the-fly-tf4148549s2369.html#a11801720
> >> Sent from the AppFuse CSS mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [hidden email]
> >> For additional commands, e-mail: [hidden email]
> >>
> >>
> >
> >
> > --
> > http://raibledesigns.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/changing-style-on-the-fly-tf4148549s2369.html#a11826447
> Sent from the AppFuse CSS mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]