3

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 ?

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Esteban Rincon
  • 2,040
  • 3
  • 27
  • 44

1 Answers1

1

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.

Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • thank you!. How do I report properly ? I suppose here: http://corejsf.com/bugs2.html but I want to make sure I fill the correct information. – Esteban Rincon Jan 10 '16 at 12:28
  • The word "report" in my answer is clickable. – BalusC Jan 10 '16 at 12:28
  • BTW, I was looking around and from the **issues** link : https://java.net/jira/browse/JAVASERVERFACES/?selectedTab=com.atlassian.jira.jira-projects-plugin:issues-panel I clicked on the `bug` link at the bottom right of the page, and When clicking on `Reported by me` the page goes into an infinite loop and shows `ERR_TOO_MANY_REDIRECTS` – Esteban Rincon Jan 10 '16 at 12:31
  • New to JIRA tool? Just signup/login and you'll see "create issue" button in top bar. Anonymous reporting is not permitted. That redirect loop is just a misconfiguration on their side. – BalusC Jan 10 '16 at 12:32