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.
To re-create this problem: 1. Start IDE -- version and environment is as follows: Product Version: NetBeans IDE 7.0 Beta (Build 201011152355) Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307 System: Mac OS X version 10.6.5 running on x86_64; MacRoman; en_US (nb) 2. Menu File->New Project 3. In dialog box choose Maven->WebApplication 4. Set some sensible project name and select Java EE 6 in EE Version. 5. Select File->New FIle 6. Select JavaServer Faces->JSF Page 7. make some new file in the location "Web Page" and select "Facelets" radio button. You will create file as below, and the "h:head" and "h:body" elements will be marked as errors. <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"> <h:head> <title>Facelet Title</title> </h:head> <h:body> Hello from Facelets </h:body> </html>
reproducible, these errors comes from the html validator
*** Bug 191266 has been marked as a duplicate of this bug. ***
*** Bug 192551 has been marked as a duplicate of this bug. ***
fixed in web-main#a2738b3c51bf Once a facelets library is declared in an xhtml file the file's mimetype changes to text/facelets+xhtml mimetype from the error provider's view (not the actual fileobject's mimetype changes). So it is possible to use the "disable/enable error checking for this mimetype" hintfix to modify the behavior. By default the checking for facelets is disabled as for other files possibly embedding html code (php, jsp...)
*** Bug 191562 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201012100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a2738b3c51bf User: Marek Fukala <mfukala@netbeans.org> Log: #192486 - Common JSF elements such as h:head and h:body elements are marked as errors