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.
Bug ------------------------------- An "attribute is not defined in the component" error is generated for a valid attribute on a JSF Composite Component after refactoring (renaming) the component .xhtml file from lowercase to uppercase or vice-versa. System Information ------------------------------- Product Version: NetBeans IDE 8.0.2 (Build 201411181905) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb) Glasfish 3.1.2.2 JSF 2.2 Java EE 6 Recreation Steps ------------------------------- 1) Create a fresh Maven Web Application Project (Default Names - OK) 2) Open the Project Properties and add the JSF Framework 3) Create folder: src/main/webapp/resources/components 4) Add new TheBug.xhtml file to "src/main/webapp/resources/components" 5) Save the following code into TheBug.xhtml <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:cc="http://java.sun.com/jsf/composite"> <cc:interface> <cc:attribute name="myparam"/> </cc:interface> <cc:implementation> </cc:implementation> </ui:component> 6) Refactor - Rename TheBug.xhtml to theBug.xhtml 7) Change the attribute name in theBug.xhtml from "myparam" to "mynewparam" <cc:attribute name="mynewparam"/> 8) Modify index.html to <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:moth="http://java.sun.com/jsf/composite/components"> <h:body> <moth:theBug mynewparam="foo"/> </h:body> </html> "mynewparam" is marked as invalid and the code completion still lists "myparam".
I should also point out that a temporary solution that has worked for me to resolve this bug is to refactor - rename theBug.xhtml back to TheBug.xhtml, delete the file, and then create a new file named theBug.xhtml.