3 Replies Latest reply on Feb 25, 2009 7:05 AM by nbelaevski

    apply skin to application

    venkattippi

      hi,

      iam using richfaces skins in my application.

      different users are logging to use the application and they select one theme in their settings and iam storing that theme and when they relogin i show the screens with that theme color.

      but as per your example we have to configure this in web.xml.when i do this and give like bean.skin in contextParam for all users it came the same theme
      because we are configured in web.xml

      how to differentiate the themes based on the user login and show their selected theme through out upto logout.

      please tell me how to show the different theme for different user

      thanks in advance,
      venkat



        • 1. Re: apply skin to application
          nbelaevski

          Hi Venkat,

          <context-param>
          <param-name>org.richfaces.SKIN</param-name>
          <param-value>#{skinBean.skin}</param-value>
          </context-param>


          SkinBean is a session-scoped. Its "skin" property contains the name of selected skin.

          • 2. Re: apply skin to application
            venkattippi

            hi,

            i tried with that. its working fine when i open 2 different windows.
            i try to open different users in different tabs.then its giving problem.
            can i do this and make new session for new tab.

            if it is possible kindly tell me how to do this.

            thanks,
            venkat

            • 3. Re: apply skin to application
              nbelaevski

              Browser makes these windows share the session. Seam has a special conversation scope, however I'm not sure it will work ok for this case. You can try.