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 - [70cat] index.xhtml shows errors in the editor
Summary: [70cat] index.xhtml shows errors in the editor
Status: RESOLVED DUPLICATE of bug 202959
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Marek Fukala
Depends on:
Reported: 2010-12-26 20:19 UTC by vanob
Modified: 2011-10-31 15:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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

Warning: Content is being hidden from the validator based on namespace
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" "">
<html xmlns=""
        <title>Facelet Title</title>
        Hello from Facelets

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"
<html xmlns=""  
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 ***