10 Replies Latest reply on Mar 6, 2009 10:29 AM by nbelaevski

    Hi

    aboocs01

      i want to add my own themes to my application which im creating.
      my enviroment is JSF(richfaces,seam, ejb3 and jboss server)...

      quetion:
      i would like to have my own theme to my project i tried with default themes like bluesky,embraldTown by seam this is working fine but for me i have my own 2 to 3 diffrent css files , dynamically i want to apply those theme to my all richfaces component and non richfaces companent(sun ri tags).. how can i acheive it??? please help me out with clear demostration.....

        • 1. Re: Hi
          thiruneela

          Hi!
          In order to use your own themes, you need to define custom.skin.properties (specify your skin name in place of custom)and place it in your workspace at
          ..\WebContent\META-INF\skins\ . Now you can use theme selector or define skinBean selector
          Restart the server once.

          • 2. Re: Hi
            thiruneela

            See the following link, it might help you.
            http://mkblog.exadel.com/?cat=34

            • 3. Re: Hi
              aboocs01

              first i will thank you for help me to go little ahead with my work..ya i tried that way thiru ... it is working fine but customization is happening only to rich components... example i define my own theme in customWine.skin. properties but customization is happening in rich component... i want to customize my entire application like background, header , footer and sunri components..... how can i acheive.... help me out pls...................

              • 4. Re: Hi
                thiruneela

                Try adding this code in web.xml

                <context-param>
                 <param-name>org.richfaces.CONTROL_SKINNING</param-name>
                 <param-value>enable</param-value>
                 </context-param>
                 <context-param>
                 <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
                 <param-value>enable</param-value>
                 </context-param>
                


                • 5. Re: Hi
                  aboocs01

                  thank you much... once again much more improvement.........i got it.... i think i have to do some changes in my css file to get it sucessfull 100%...

                  • 6. Re: Hi
                    aboocs01

                    thiru still my background colour of my application is not getting change ?? why wats reason... if you any document related to this kindly send to me..

                    • 7. Re: Hi
                      thiruneela

                      Add rich:panel to the page.
                      It works

                      <rich:panel>
                      
                       body
                      </rich:panel>


                      • 8. Re: Hi
                        nbelaevski

                        Hello,

                        It's easy to check why it's so using Firebug tool. Please try.

                        • 9. Re: Hi
                          thiruneela

                          Hi Nich!
                          What is Firebug tool? What happens if we use it?

                          • 10. Re: Hi
                            nbelaevski

                            Take a look: http://getfirebug.com/. Firebug allows you to do a lot of interesting things just from browser status bar. For example, it can show you from where the CSS styling you see comes from.