Yes, certainly. Just use the same XHTML composition as the master template /layout.xhtml
itself, but then without any <ui:insert>
. Instead, just put the desired content straight in there.
For example, /page.xhtml
:
<!DOCTYPE html>
<html lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>Some title</title>
</h:head>
<h:body>
<h1>Some heading</h1>
<p>Plain Facelets page without template!</p>
</h:body>
</html>
Open this directly as /page.xhtml
in browser.