2 Replies Latest reply on Mar 10, 2008 2:17 PM by ilya_shaikovsky

    SKIN ValueExpression in XCSS with a4j:loadStyle

    thoemmes86

      Hallo,

      I'm using a4j:loadStyle with a XCSS resource to use the RichFaces SKIN-parameters in my CSS. Now I need something like a ValueExpression to a managed bean in my XCSS. I need this to controll the application-style with an Administration Panel. In this ManagedBean i store color, TextSize...

      This is my XCSS File:

      <?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[
      
      .HeaderText {
       font-size: 20px;
      }
      
      ]]></f:verbatim>
      
      <u:selector name=".HeaderText">
       <u:style name="color" skin="panelBorderColor" />
      </u:selector>
      
      </f:template>
      


      Here is my Question:

      The skin-param is in this file panelBorderColor. Is it possible to use something like #{Bean.MHeaderColor} instead of panelBorderColor to get informations of a ManagedBean?