Configuración de regla de navegación para JSF. Pruebas con primefaces Nuevo ManagedBean para pantalla home. Pagina de login para pruebas.
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
<?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:ui="http://java.sun.com/jsf/facelets"
|
|
xmlns:f="http://java.sun.com/jsf/core"
|
|
xmlns:h="http://java.sun.com/jsf/html"
|
|
xmlns:p="http://primefaces.org/ui">
|
|
<f:metadata>
|
|
<f:viewParam name="refresh" value="#{specs.refresh}" />
|
|
</f:metadata>
|
|
|
|
<ui:composition template="./header.xhtml">
|
|
<ui:define name="content">
|
|
<h:form>
|
|
<p:panel header="Prueba con Primefaces">
|
|
<h:panelGrid columns="2">
|
|
<h:outputLabel value="Fecha" />
|
|
<p:calendar pattern="dd/MM/yyyy" />
|
|
</h:panelGrid>
|
|
</p:panel>
|
|
</h:form>
|
|
<h:form align="left">
|
|
<div style="margin: auto; width: 800px">
|
|
<div style="display: inline; float: right;">
|
|
<!-- Crear menu de aplicación solo si estamos logeados -->
|
|
</div>
|
|
<br />
|
|
<p:spinner />
|
|
<br /> Welcome #{home.userName}
|
|
<!-- Mostrar página de bienvenida -->
|
|
</div>
|
|
</h:form>
|
|
</ui:define>
|
|
</ui:composition>
|
|
</html> |