3 Replies Latest reply on Mar 5, 2009 9:32 AM by Wesley Hales

    Portal Themes and Richfaces

    Axel Motyka Newbie

      My goal is to create my own Portal theme, which also effects Richfaces.
      In JBoss Portal i can use different themes, in Richfaces i can use skins.

      Is it possible that richfaces is using the Portal themes? And how can i enable this?
      Or how can i create a design for both?



        • 1. Re: Portal Themes and Richfaces
          Wesley Hales Master

          This would be cool if you could create it and submit it back to the portlet bridge project. I could add it as a bridgelet.

          Here is what you need to do to match the current portal theme:

          1. Create a file called renewal.skin.properties (if this is the theme you are trying to match, if not, name it something else besides "renewal") and place it in your RichFaces applications WEB-INF/lib.

          2. Here is a sample properties file I had laying around:
          #Colors
          headerBackgroundColor=#FFD863
          headerGradientColor=#FF9B19
          headerTextColor=#000000
          headerWeightFont=bold

          generalBackgroundColor=#FFFFFF
          generalTextColor=#000000
          generalSizeFont=12px
          generalFamilyFont=Tahoma, Verdana, sans-serif

          controlTextColor=#000000
          controlBackgroundColor=#ffffff
          additionalBackgroundColor=#FFFFFF

          shadowBackgroundColor=#000000
          shadowOpacity=1

          panelBorderColor=#C0C0C0
          subBorderColor=#ffffff

          tabBackgroundColor=#dcdcdc
          tabDisabledTextColor=#dcdcdc

          trimColor=#dcdcdc

          tipBackgroundColor=#dcdcdc
          tipBorderColor=#dcdcdc

          selectControlColor=#dcdcdc


          generalLinkColor=#0078D0
          hoverLinkColor=#0090FF
          visitedLinkColor=#0090FF

          # Fonts
          headerSizeFont=12px
          headerFamilyFont=Tahoma, Verdana, sans-serif

          tabSizeFont=12
          tabFamilyFont=Tahoma, Verdana, sans-serif

          buttonSizeFont=12
          buttonFamilyFont=Tahoma, Verdana, sans-serif

          tableBackgroundColor=#FFFFFF
          tableFooterBackgroundColor=#cccccc
          tableSubfooterBackgroundColor=#f1f1f1
          tableBorderColor=#C0C0C0


          3. Next just change the colors to match the renewal theme. And place this in your web.xml:
          <context-param>

          <param-name>org.richfaces.SKIN</param-name>

          <param-value>renewal</param-value>

          </context-param>

          4. Read more about it here and post on the forum when you are done.
          http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/ArchitectureOverview.html#CreatingAndUsingYourOwnSkinFile

          • 2. Re: Portal Themes and Richfaces
            Axel Motyka Newbie

            Ok :) it is as i thought. I will start with this!

            With submit it back to the portlet bridge project you mean a post in their forum?

            • 3. Re: Portal Themes and Richfaces
              Wesley Hales Master

              sure, just paste the properties in a post, as I did. Thanks!