a7a7f99b3a
Configuración de regla de navegación para JSF. Pruebas con primefaces Nuevo ManagedBean para pantalla home. Pagina de login para pruebas.
33 lines
1.1 KiB
HTML
33 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">
|
|
|
|
<h:head>
|
|
<title>login</title>
|
|
</h:head>
|
|
<ui:composition template="./header.xhtml">
|
|
<ui:define name="content">
|
|
<h:form>
|
|
<h3>myHealth login</h3>
|
|
<h:outputText value="Por favor, introduzca su nombre de usuario y contraseña para acceder al sistema."></h:outputText>
|
|
<h:outputText value="Usuario:" />
|
|
<h:inputText id="Uusario" value="#{login.userName}"></h:inputText>
|
|
<h:message for="username"></h:message>
|
|
<br></br><br></br>
|
|
|
|
<h:outputText value="Contraseña" />
|
|
<h:inputSecret id="password" value="#{login.password}"></h:inputSecret>
|
|
<h:message for="password"></h:message>
|
|
<br></br><br></br>
|
|
|
|
<h:commandButton action="#{login.validateUsernamePassword}" value="Login"></h:commandButton>
|
|
</h:form>
|
|
</ui:define>
|
|
</ui:composition>
|
|
</html>
|