I'd like to inherit from a base template with Facelets and i don't know how to do it; I have on the same folder two files : base.xhtml and login.xhtml i want login.xhtml to inherit from base.xhtml, should i include any library for a simple inheritance ? all what i want is to overwrite title tag and body tag on login.xhtml ;
base.xhtml :
<?xml version='1.0' encoding='UTF-8' ?>
<!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:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title><ui:insert name="titre" /></title>
<link type="text/css" rel="stylesheet" href="resources/css/bootstrap.css"></link>
<link type="text/css" rel="stylesheet" href="resources/css/tether.min.css"></link>
<script type="text/javascript" src="resources/js/jquery.js"></script>
<script type="text/javascript" src="resources/js/tether.min.js"></script>
<script type="text/javascript" src="resources/js/bootstrap.js"></script>
<script type="text/javascript" src="resources/js/sortable.js"></script>
</h:head>
<h:body>
</h:body>
</html>