This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | h:outputScript and h:outputStylesheet "name" attribute is not required | ||
---|---|---|---|
Product: | javaee | Reporter: | lu4242 |
Component: | JSF Editor | Assignee: | Martin Fousek <marfous> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mfukala |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
lu4242
2012-08-15 17:01:12 UTC
The editor support finds .taglib.xml files on the project's classpath and parses them to get the info about the components. We also bundle jsf2.1 in case you want to add it to the project if the server doesn't contain the jsf libs. So this issue depends on what version of jsf the project contain and if the the library descriptors in the jsf jars contains the correct information. To address this kind of issues some kind of components definition overlay (per jsf version) would have to be introduced to fix the issues. Please note in practice, both Mojarra and MyFaces does not use .taglib.xml files to load tag libraries provided by the standard spec (h, f, ui, c, composite), to make startup faster (avoid parse the xml file). In theory it should be some file from inside netbeans. I'm aware of this - they are mainly a documentation. But as for NB - we need something to work with and this is a prefect object - it is supposed to contain all the necessary information. The problem and truth is that it is buggy, but this doesn't mean we should maintain another data chart out of the engine. I asked JSF guys for the specification change but it was too late to be available for the new JSF2.2 spec. Anyway at least they changed the taglib metadata to be corresponding to the reality and the JSF impl removed requirement for the "name" attribute. In other words, in NetBeans 7.3.1 by using latest JSF library (JSF2.2) this will be fixed. web-main #7bffc0db038a |