1 Reply Latest reply on Feb 15, 2008 11:03 PM by Gavin King

    Seam Theme selection

    Vincent Wiencek Newbie

      Hi,


      I've a seam application which stores themes in the database. I'm facing the following problem :
      When a user try to access a page for the first time, the theme is loaded from database, then I perform a :


      ThemeSelector.instance().selectTheme("themeA");


      to apply the new theme.


      But my theme specifications apply on the next reload of the page. (I guess the theme selection happened after jsf rendering)


      I've try to select the theme before the jsf page load, with


      @Observer("org.jboss.seam.beforePhase")




      but it doesn't work.


      Thx
      Vincent