I would like the middle of the page to be changed when the user clicks "login" or "registry". Can someone explain to me how I can do this?
If you know tutorials that teach how to log in and if you can leave the links, I would appreciate it.
PageCode:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Meu Sistema</title>
</h:head>
<h:body>
<div align="center">
<p:layout style="min-width:1020px;max-width:1020px;min-height:600px">
<p:layoutUnit position="center">
<ui:insert name="centro">
O que estiver aqui será substituido!
</ui:insert>
</p:layoutUnit>
</p:layout>
</div>
<p:stack icon="imagens/stacks.png" expanded="true">
<p:menuitem value="Login" icon="imagens/lock.png" url="#"/>
<p:menuitem value="Registar" icon="imagens/register.png" url="#"/>
</p:stack>
</h:body>
</html>