I'm using NetBeans 8.0.2 and Mojarra 2.2 where according to the docs there's a media
attribute and this is not the case, I get the following message:
The attribute media is not defined in the component outputStyleSheet
So the problem I know is with NetBeans 8.0.2. When I launch the application, It runs properly so does anyone know why NetBeans shows this error ?
It's documentary bug in the tag library declaration file of the Mojarra implementation. The Mojarra guys forgot to declare the
media
attribute ofoutputStylesheet
tag in thehtml_basic.taglib.xml
file. Netbeans is relying its tag/attribute validation on it and therefore gives false warnings.The tag library declaration entry of the attribute is not necessary for the technical functioning of the attribute (not in components, tagfiles, nor composites) and that's why it just works fine.
The same documentary bug problem is known with below tag attributes:
<ui:fragment rendered>
- fixed in Mojarra 2.1<f:selectItem itemEscaped>
- fixed in Mojarra 2.2If you report the
<h:outputStylesheet media>
documentary bug, it'll likely be fixed in Mojarra 2.3.