A composite component has its attributes declared with the "composite-attribute" tags, one of these attributes is "theme", used to specify the css file to be used by the component.
<composite:attribute name="theme" required="false" default="rose" />
At the component's implementation I try to import the css file using the "h:outputStyleSheet" tag.
<h:outputStylesheet library="components" name="calendar/#
If no attribute "theme" is specified by the page calling the component, "h:outputStylesheet" should import "calendar/rose/calendar.css". If a theme is specified it should import the specified theme.
"h:outputStylesheet" tries to import "calendar//calendar.css", no matter if a theme was specified or not.
I tried to specify the theme directly inside the EL expression (name="#
"), it worked, so it's not an expression problem. I think the cc.attrs variables are not available when "h:outputStylesheet" is processed.
There's a similar problem described in Stack Overflow: