1
I would like the middle of the page to be changed when the user clicks "login" or "registration". Can anyone explain to me how to do this?
If you know tutorials that teach you how to log in and if you can leave the links I would appreciate.
Page code:
<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>
And as I send the link to the variable page?
– Thepeter
edited my answer, take a look.
– Rafael
I understood everything Voce said but include is not doing the refresh I’m doing so
<p:menuitem value="Login" icon="imagens/lock.png" url="#"
 actionListener="#{Controlomenu.Paginalogin}" update="centro" />
in which center and the name of a panelgroup– Thepeter
I thought this post answers exactly the question. However, in my opinion, it is not good practice and is not part of the concept of JSF templates.
– Rodrigo