I just open the document and the error appears. Take, for instance, the following template.xhtml file:
- <!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"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:rich="http://richfaces.org/rich"
-
xmlns:a4j="http://richfaces.org/a4j">
-
-
<body>
-
<table>
-
<tr>
-
<td><ui:include src="/jsf/AnamanMenu.xhtml" /></td>
-
</tr>
-
<tr>
-
<td><ui:insert name="body" /></td>
-
</tr>
-
<tr>
-
<td><ui:insert name="bottom" /></td>
-
</tr>
-
</table>
-
</body>
-
</html>
It looks alright, doesn't it?
Well, on Eclipse, every time I open this file, and other with the .xhtml extension for that matter, a red square with an white x (the error symbol) appears over the file name on the package tree list and an message saying the file contains errors pops up upon saving.
Doesn't makes much sense, does it?