jsf 2 - jsf 2 ui:include .html give error "XML Parsing Error: no element found" -
i include header.html (not .xhtml) page, when preview page, give me error "xml parsing error: no element found". know tag no closed issue, since header page html file, not xhtml file, shouldn't must close tag, right?
if close meta tag in header.html, page working fine, wish know must close tag in html file if include them in jsf2, thanks.
header.html
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1"> <title>header</title> <meta name="description" content=""> </head> <body>header content</body> </html>
welcome1.xhtml
<ui:include src="header.html" /> <p>welcome page</p>
from oracle's documentation, <ui:include>
used encapsulate , reuse content among multiple xhtml pages
. src
attribute expected point well-formed xml document. if want include .html
pages, need make sure all tags closed properly.
Comments
Post a Comment