where to link to template.xhtml
Posted: 07 Jun 2019, 16:55
Hi,
In the documentation I read that you must put template.xhtml under WEB-INF. when I do that and configure the page like this, I get a blank page:
As an alternative, when I put template.xhtml (and megamennu.xhtml, etc) under webapp/resources and link like this:
I get a page that displays the megamenu.xhtml content, but no styles are applied to <body class="main-body"> or <div class="layout-wrapper ">. When I do "inspect element" over those tags I get "no CSS properties found".
Help please.
In the documentation I read that you must put template.xhtml under WEB-INF. when I do that and configure the page like this, I get a blank page:
Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:jsf="http://xmlns.jcp.org/jsf"
template="/WEB-INF/template.xhtml">
Code: Select all
<ui:composition template="/resources/templates/template.xhtml">
Help please.