0 Replies Latest reply on May 15, 2008 5:28 AM by 6sic6

    a4j:loadStyle Xcss and dynamic colors

    6sic6

      Hi all
      I'm using a4j:loadStyle to load my xxx.xcss file
      now I've 2 class styles here inside

      <u:selector name=".documentSearchLight">
       <u:style name="background" skin="docSearchLightBkgColor" />
       </u:selector>
       <u:selector name=".documentSearchDark">
       <u:style name="background" skin="docSearchDarkBkgColor" />
       </u:selector>


      and these take the colors form my xxx.properties file in this way

      docSearchLightBkgColor=#333
      docSearchDarkBkgColor=#{skinManager.getActualBrand().getColourScheme()}
      


      docSearchLightBkgColor works fine
      docSearchDarkBkgColor is the color taken from my schema dynamically. Now this doesn't work correctly, it seems it sometimes takes the dynamic color in the schema and sometimes it takes the default color of the component.

      I debugged it and i.e. if the schema contains 'red' the backingbean returns always red but the rendered color sometimes is red and sometimes has the default component's color.
      Someone know what's the problem?

      thx