4 Replies Latest reply on Feb 2, 2011 7:51 AM by nbelaevski

    import CSS file in richfaces

    clout

      I tried to import CSS file in richfaces, but it didn't work normally.

      I didn't know what problem is.

       

      temp.css

       

      [code]

      <?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:verbatim><![CDATA[
      .rsLabel{
          color:red;
      font-size: 20px;
      }
      ]]></f:verbatim>

      <u:selector name:".rsLabel">
      <u:style name="color" skin="headerTextColor">
      </u:selector>


      </f:template>

      [/code]

       

       

      show.xhtml

       

      [code]

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">

      <a4j:loadStyle src="resource:///temp.css" />

      <h:outputText styleClass="rsLabel" value="Hello Richfaces!" />

      </ui:composition>

      [/code]