refactor: ajustar a formatação e a estrutura do código em menu.xhtml e template.xhtml

master
guilherme 2025-06-18 14:24:20 -03:00
parent 6c89b03a1e
commit 3efb509d77
4 changed files with 112 additions and 74 deletions

View File

@ -1,11 +1,17 @@
<?xml version='1.0' encoding='UTF-8' ?> <?xml version='1.0' encoding='UTF-8' ?>
<ui:composition <ui:composition
xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui" xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://java.sun.com/jsf/facelets"> xmlns:ui="http://java.sun.com/jsf/facelets"
>
<p:submenu icon="pi pi-chevron-down" label="agtemplate"> <p:submenu icon="pi pi-chevron-down" label="agtemplate">
<p:menuitem value="tb_template" onclick="location.href='${request.contextPath}/agtemplate/Tb_template.xhtml'" immediate="true" styleClass="menuItem_styleClass" /> <p:menuitem
value="tb_template"
onclick="location.href='${request.contextPath}/agtemplate/Tb_template.xhtml'"
immediate="true"
styleClass="menuItem_styleClass"
/>
</p:submenu> </p:submenu>
</ui:composition> </ui:composition>

View File

@ -1,15 +1,19 @@
<?xml version='1.0' encoding='UTF-8' ?> <?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <html
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsf="http://xmlns.jcp.org/jsf"> xmlns:p="http://primefaces.org/ui"
xmlns:jsf="http://xmlns.jcp.org/jsf"
>
<f:view> <f:view>
<h:head> <h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AGTEMPLATE / <ui:insert name="HEAD_TITULO_PAGINA"></ui:insert></title> <title>
AGTEMPLATE / <ui:insert name="HEAD_TITULO_PAGINA"></ui:insert>
</title>
<ui:insert name="HEAD_PAGINA"></ui:insert> <ui:insert name="HEAD_PAGINA"></ui:insert>
</h:head> </h:head>
<h:body id="body_agtemplate"> <h:body id="body_agtemplate">
@ -22,14 +26,23 @@ xmlns:jsf="http://xmlns.jcp.org/jsf">
<ui:insert name="CAMINHO_PAGINA"></ui:insert> <ui:insert name="CAMINHO_PAGINA"></ui:insert>
<ui:insert name="MENU_PAGINA"></ui:insert> <ui:insert name="MENU_PAGINA"></ui:insert>
<p:messages id="messages" showSummary="true" closable="true" /> <p:messages id="messages" showSummary="true" closable="true" />
<h:panelGroup id="form_formulario" layout="block" > <h:panelGroup id="form_formulario" layout="block">
<ui:insert name="FORMULARIO"></ui:insert> <ui:insert name="FORMULARIO"></ui:insert>
</h:panelGroup> </h:panelGroup>
<ui:insert name="LIVRE"> <ui:insert name="LIVRE"> </ui:insert>
</ui:insert>
<p:confirmDialog message="Deseja Excluir?"> <p:confirmDialog message="Deseja Excluir?">
<p:commandButton value="SIM" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check"/> <p:commandButton
<p:commandButton value="NÃO" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close"/> value="SIM"
type="button"
styleClass="ui-confirmdialog-yes"
icon="ui-icon-check"
/>
<p:commandButton
value="NÃO"
type="button"
styleClass="ui-confirmdialog-no"
icon="ui-icon-close"
/>
</p:confirmDialog> </p:confirmDialog>
<p:growl id="panelAlerta" life="5000" showSummary="true" /> <p:growl id="panelAlerta" life="5000" showSummary="true" />
</h:form> </h:form>

View File

@ -1,11 +1,17 @@
<?xml version='1.0' encoding='UTF-8' ?> <?xml version='1.0' encoding='UTF-8' ?>
<ui:composition <ui:composition
xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui" xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://java.sun.com/jsf/facelets"> xmlns:ui="http://java.sun.com/jsf/facelets"
>
<p:submenu icon="pi pi-chevron-down" label="agtemplate"> <p:submenu icon="pi pi-chevron-down" label="agtemplate">
<p:menuitem value="tb_template" onclick="location.href='${request.contextPath}/agtemplate/Tb_template.xhtml'" immediate="true" styleClass="menuItem_styleClass" /> <p:menuitem
value="tb_template"
onclick="location.href='${request.contextPath}/agtemplate/Tb_template.xhtml'"
immediate="true"
styleClass="menuItem_styleClass"
/>
</p:submenu> </p:submenu>
</ui:composition> </ui:composition>

View File

@ -1,15 +1,19 @@
<?xml version='1.0' encoding='UTF-8' ?> <?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <html
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsf="http://xmlns.jcp.org/jsf"> xmlns:p="http://primefaces.org/ui"
xmlns:jsf="http://xmlns.jcp.org/jsf"
>
<f:view> <f:view>
<h:head> <h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AGTEMPLATE / <ui:insert name="HEAD_TITULO_PAGINA"></ui:insert></title> <title>
AGTEMPLATE / <ui:insert name="HEAD_TITULO_PAGINA"></ui:insert>
</title>
<ui:insert name="HEAD_PAGINA"></ui:insert> <ui:insert name="HEAD_PAGINA"></ui:insert>
</h:head> </h:head>
<h:body id="body_agtemplate"> <h:body id="body_agtemplate">
@ -22,14 +26,23 @@ xmlns:jsf="http://xmlns.jcp.org/jsf">
<ui:insert name="CAMINHO_PAGINA"></ui:insert> <ui:insert name="CAMINHO_PAGINA"></ui:insert>
<ui:insert name="MENU_PAGINA"></ui:insert> <ui:insert name="MENU_PAGINA"></ui:insert>
<p:messages id="messages" showSummary="true" closable="true" /> <p:messages id="messages" showSummary="true" closable="true" />
<h:panelGroup id="form_formulario" layout="block" > <h:panelGroup id="form_formulario" layout="block">
<ui:insert name="FORMULARIO"></ui:insert> <ui:insert name="FORMULARIO"></ui:insert>
</h:panelGroup> </h:panelGroup>
<ui:insert name="LIVRE"> <ui:insert name="LIVRE"> </ui:insert>
</ui:insert>
<p:confirmDialog message="Deseja Excluir?"> <p:confirmDialog message="Deseja Excluir?">
<p:commandButton value="SIM" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check"/> <p:commandButton
<p:commandButton value="NÃO" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close"/> value="SIM"
type="button"
styleClass="ui-confirmdialog-yes"
icon="ui-icon-check"
/>
<p:commandButton
value="NÃO"
type="button"
styleClass="ui-confirmdialog-no"
icon="ui-icon-close"
/>
</p:confirmDialog> </p:confirmDialog>
<p:growl id="panelAlerta" life="5000" showSummary="true" /> <p:growl id="panelAlerta" life="5000" showSummary="true" />
</h:form> </h:form>