I have a custom component which has an attribute defined like this:
<composite:attribute name="category"/>
The component in question uses a custom UIComponent class and -for logging purposes- it prints out the category when it is requested using the code:
getAttributes().get("category")
If I do this in JSF, it works:
<my:test category="test"/>
The log shows:
** CATEGORY: test
However suppose I do this:
<my:test category="#{myvar.value}"/>
It doesn't really matter which expression I use, the output is invariably:
** CATEGORY: null
Is this a mojarra-specific bug? Or is it a limitation of JSF when it comes to EL in custom attributes?