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 193821

Summary: [70cat] index.xhtml shows errors in the editor
Product: javaee Reporter: vanob <vanob>
Component: JSF EditorAssignee: Marek Fukala <mfukala>
Status: RESOLVED DUPLICATE    
Severity: normal CC: pjiricka
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description vanob 2010-12-26 20:19:49 UTC
[ BUILD # : 201012150001 ]
[ JDK VERSION : 1.6.23 ]

1. Created web project with jsf support.
2. index.xhtml was created by the IDE and it was opened in the editor.
3. Editor shows several errors

On line 5
<h:head>

Warning: Content is being hidden from the validator based on namespace
filtering.
Comment 1 rweaver 2011-04-25 03:56:32 UTC
I see the same issue, and if I validate the XML on a newly created JSF XHTML file, I get the following XML validation errors:

XML validation started.
Checking file:/Users/newadminaccount/NetBeansProjects/OmnisTools/web/test.xhtml...
Attribute "xmlns:h" must be declared for element type "html". [4] 
Element type "h:head" must be declared. [5] 
Element type "h:body" must be declared. [8] 
The content of element type "html" must match "(head,body)". [11] 
XML validation finished.

The file contents are:

<?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>

Not clear to me what would be needed to fix this error. Page displays fine in the web application.
Comment 2 rweaver 2011-04-30 17:49:49 UTC
Original report was on Windows, I am on Mac OS X
Comment 3 riktam 2011-05-08 11:42:56 UTC
I see the same issue in Netbeans7 (no problems in netbeans6.9.1). 
My project runs with jdk7 and wicket:

<?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:wicket="http://wicket.sourceforge.net/">
Comment 4 Martin Fousek 2011-09-07 13:33:45 UTC
BTW, I tried it with totally new userdir and warnings in .xhtml were by default disabled as you assumed.
Comment 5 Marek Fukala 2011-09-08 09:48:22 UTC
This is apparently a problem of the userdir import from older version. If you do the steps in non-imported userdir it works well.

BTW, Martine was your userdir imported from 6.9 or 7.0 or just reused from an older dev build?
Comment 6 Marek Fukala 2011-10-31 15:17:25 UTC

*** This bug has been marked as a duplicate of bug 202959 ***