11 Replies Latest reply on Feb 17, 2009 2:34 PM by Max Laenzlinger

    Stylesheet management: best practices?

    Dimitri Alexeev Newbie

      Hi,

      richfaces skinnability feature raises a question, if we can manage all the stylesheet-definitions in one place.

      It seems to be not the best solution, to define CSS for custom components separately from rich-components (layoted using skin definition)

      The question is, if it would make sense to put store Styles for non-rich components (or better xcss) as a part of custom skin?

      Talking about code, think about

      <?xml version="1.0" encoding="UTF-8"?>
      <f:template xmlns:f='http:/jsf.exadel.com/template'
       xmlns:u='http:/jsf.exadel.com/template/util'
       xmlns="http://www.w3.org/1999/xhtml" >
      
       <f:importResource src="de/mhb/hl21/myskin/css/extended.xcss" />
       <f:importResource src="de/mhb/hl21/myskin/css/extended_classes.xcss" />
      
      
      <!-- this is new: -->
      
       <f:importResource src="de/mhb/hl21/myskin/css/custom_styles.xcss" />
      
      </f:template>



      WDYT?