3 Replies Latest reply on May 26, 2010 1:30 AM by nagendra_singh_krishnawat

    Using seam built-in skin

      I am trying to leverage the richfaces build in skins. Rich faces skin properties files are present in richfaces-impl-3.3.2.SR1.jar/META-INF folder.
      As the seam documentation says you have to create a .properties file for the set of values in components.xml.
      Here is my components.xml:




      <component name="org.jboss.seam.theme.themeSelector">
          <property name="availableThemes">
              <value>default</value>
              <value>greenBrown</value> 
          </property>
      </component>





      Now I have two .properties files in my classpath:


      default.properties  containing:




      stylesheet=/stylesheet/theme.css
      stylesheetx=resource:///stylesheet/theme.xcss
      template=/layout/template.xhtml





      greenBrown.properties containing :




      stylesheet=/stylesheet/greenBrown.css
      stylesheetx=resource:///stylesheet/theme.xcss
      template=/layout/template.xhtml




      So when the user selects one of the themes from UI the corresponding .properties files get selected and corresponding css and template is used.


      As you can see in properties file I have defferent css for different theme but same template.
      Now my question is how can I leverage seams build in themes such as wine, emraldBrown, ruby etc etc .. in my application.


      Do I need .properties file for each of these themes in my classpath (Well I tried copying the properties from .properties file avaliable in richfaces-impl-3.3.2.SR1.jar in my classpath, and it didn't work). If not then I rely on richfaces .property files which are in  richfaces-impl-3.3.2.SR1.jar/META-INF, So how do I configure my app that it select those, in this case how do I specify which template file to use.


      I am confused how this think works.