refactor: ajustar a formatação e a estrutura do código em menu.xhtml e template.xhtml
parent
6c89b03a1e
commit
3efb509d77
|
@ -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:menuitem value="tb_template" onclick="location.href='${request.contextPath}/agtemplate/Tb_template.xhtml'" immediate="true" styleClass="menuItem_styleClass" />
|
<p:submenu icon="pi pi-chevron-down" label="agtemplate">
|
||||||
</p:submenu>
|
<p:menuitem
|
||||||
|
value="tb_template"
|
||||||
|
onclick="location.href='${request.contextPath}/agtemplate/Tb_template.xhtml'"
|
||||||
|
immediate="true"
|
||||||
|
styleClass="menuItem_styleClass"
|
||||||
|
/>
|
||||||
|
</p:submenu>
|
||||||
</ui:composition>
|
</ui:composition>
|
||||||
|
|
|
@ -1,38 +1,51 @@
|
||||||
<?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>
|
||||||
<ui:insert name="HEAD_PAGINA"></ui:insert>
|
AGTEMPLATE / <ui:insert name="HEAD_TITULO_PAGINA"></ui:insert>
|
||||||
|
</title>
|
||||||
|
<ui:insert name="HEAD_PAGINA"></ui:insert>
|
||||||
</h:head>
|
</h:head>
|
||||||
<h:body id="body_agtemplate">
|
<h:body id="body_agtemplate">
|
||||||
<h:form id="form_geral">
|
<h:form id="form_geral">
|
||||||
<p:menubar>
|
<p:menubar>
|
||||||
<ui:include src="./menu.xhtml" />
|
<ui:include src="./menu.xhtml" />
|
||||||
</p:menubar>
|
</p:menubar>
|
||||||
<ui:insert name="TITULO_PAGINA"></ui:insert>
|
<ui:insert name="TITULO_PAGINA"></ui:insert>
|
||||||
<ui:insert name="SISTEMA_PAGINA"></ui:insert>
|
<ui:insert name="SISTEMA_PAGINA"></ui:insert>
|
||||||
<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
|
||||||
<p:commandButton value="SIM" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check"/>
|
value="SIM"
|
||||||
<p:commandButton value="NÃO" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close"/>
|
type="button"
|
||||||
</p:confirmDialog>
|
styleClass="ui-confirmdialog-yes"
|
||||||
<p:growl id="panelAlerta" life="5000" showSummary="true" />
|
icon="ui-icon-check"
|
||||||
</h:form>
|
/>
|
||||||
|
<p:commandButton
|
||||||
|
value="NÃO"
|
||||||
|
type="button"
|
||||||
|
styleClass="ui-confirmdialog-no"
|
||||||
|
icon="ui-icon-close"
|
||||||
|
/>
|
||||||
|
</p:confirmDialog>
|
||||||
|
<p:growl id="panelAlerta" life="5000" showSummary="true" />
|
||||||
|
</h:form>
|
||||||
</h:body>
|
</h:body>
|
||||||
</f:view>
|
</f:view>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -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:menuitem value="tb_template" onclick="location.href='${request.contextPath}/agtemplate/Tb_template.xhtml'" immediate="true" styleClass="menuItem_styleClass" />
|
<p:submenu icon="pi pi-chevron-down" label="agtemplate">
|
||||||
</p:submenu>
|
<p:menuitem
|
||||||
|
value="tb_template"
|
||||||
|
onclick="location.href='${request.contextPath}/agtemplate/Tb_template.xhtml'"
|
||||||
|
immediate="true"
|
||||||
|
styleClass="menuItem_styleClass"
|
||||||
|
/>
|
||||||
|
</p:submenu>
|
||||||
</ui:composition>
|
</ui:composition>
|
||||||
|
|
|
@ -1,38 +1,51 @@
|
||||||
<?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>
|
||||||
<ui:insert name="HEAD_PAGINA"></ui:insert>
|
AGTEMPLATE / <ui:insert name="HEAD_TITULO_PAGINA"></ui:insert>
|
||||||
|
</title>
|
||||||
|
<ui:insert name="HEAD_PAGINA"></ui:insert>
|
||||||
</h:head>
|
</h:head>
|
||||||
<h:body id="body_agtemplate">
|
<h:body id="body_agtemplate">
|
||||||
<h:form id="form_geral">
|
<h:form id="form_geral">
|
||||||
<p:menubar>
|
<p:menubar>
|
||||||
<ui:include src="./menu.xhtml" />
|
<ui:include src="./menu.xhtml" />
|
||||||
</p:menubar>
|
</p:menubar>
|
||||||
<ui:insert name="TITULO_PAGINA"></ui:insert>
|
<ui:insert name="TITULO_PAGINA"></ui:insert>
|
||||||
<ui:insert name="SISTEMA_PAGINA"></ui:insert>
|
<ui:insert name="SISTEMA_PAGINA"></ui:insert>
|
||||||
<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
|
||||||
<p:commandButton value="SIM" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check"/>
|
value="SIM"
|
||||||
<p:commandButton value="NÃO" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close"/>
|
type="button"
|
||||||
</p:confirmDialog>
|
styleClass="ui-confirmdialog-yes"
|
||||||
<p:growl id="panelAlerta" life="5000" showSummary="true" />
|
icon="ui-icon-check"
|
||||||
</h:form>
|
/>
|
||||||
|
<p:commandButton
|
||||||
|
value="NÃO"
|
||||||
|
type="button"
|
||||||
|
styleClass="ui-confirmdialog-no"
|
||||||
|
icon="ui-icon-close"
|
||||||
|
/>
|
||||||
|
</p:confirmDialog>
|
||||||
|
<p:growl id="panelAlerta" life="5000" showSummary="true" />
|
||||||
|
</h:form>
|
||||||
</h:body>
|
</h:body>
|
||||||
</f:view>
|
</f:view>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue