My <!DOCTYPE html>
declaration is getting removed from my JSF pages, and it's messing things up.
This same question has been asked a bunch of times:
HTML doctype declaration in JSF
DocType is not showing in the rendered output from JSF
JSF template: rendered page missing DOCTYPE
Trouble is, this Jira entry says the bug has been fixed. Apparently not. I'm using the most recent version:
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.2.0-m07</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.2.0-m07</version>
</dependency>
For reference, here are my pages:
test_layout.xhtml:
<!DOCTYPE html>
<html xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
<ui:insert name="content"/>
</body>
</html>
test_content.xhtml:
<ui:composition
xmlns:ui="http://java.sun.com/jsf/facelets"
template="test_layout.xhtml">
<ui:define name="content">
bunch 'o content
</ui:define>
</ui:composition>
Anybody got a workaround?