In NetBeans, Mojarra 2.2 outputStyleSheet doesn't have media attribute

154 views Asked by At

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 ?

1

There are 1 answers

4
BalusC On BEST ANSWER

It's documentary bug in the tag library declaration file of the Mojarra implementation. The Mojarra guys forgot to declare the media attribute of outputStylesheet tag in the html_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:

If you report the <h:outputStylesheet media> documentary bug, it'll likely be fixed in Mojarra 2.3.