New ThemeSwitcher

New ThemeSwitcher

PrimeFaces 3.0.M3 begins with the new ThemeSwitcher component. Old themeswitcher had many shortcomings, it can’t work in an offline environment since it needed a connection to load the themes and saving the selected theme on the server side was tricky. For new themeSwitcher I’ve created a native PrimeFaces widget as an extension of selectOneMenu that can load themes locally since it is an input component selected theme can be passes to the backing bean. Using optional support to client behaviors like p:ajax, more fun can be implemented. I’ve created a new example demonstrating possible scenarios with new themeswitcher in PrimeFaces Labs Showcase.

  • Oleg
    6 July 2011 at 12:39

    ThemeSwitcher is a good component. Theme Preview is handy. That’s what I wanted to do with p:selectOneMenu.

    There is a small problem in the demo. Selecting a theme and “Choose Theme” again causes a themeless page 🙂

  • Daniel
    6 July 2011 at 12:44

    Looking good

    I did one by my self too 🙂

    Here is how mine looks like:

  • cagataycivici
    6 July 2011 at 13:10

    @Oleg, that is on purpose to show how crap page looks when no theme is in.

  • cagataycivici
    6 July 2011 at 13:11

    @Daniel, looks great.

  • Stefan
    6 July 2011 at 14:17

    looks useful!
    It fileupload supports for Spring in PrimeFaces 3.0 final?

Post a Comment