Inventario Jakarta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.4 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Inicio de sesión</title>
<h:outputStylesheet library="css" name="styles.css" />
</h:head>
<h:body>
<h:form id="loginForm">
<p:growl id="growl" showDetail="true" />
<h2>Iniciar sesión</h2>
<h:panelGrid columns="2" id="loginPanel">
<p:outputLabel for="username" value="Usuario:" />
<p:inputText id="username" value="#{demoBeanLogin.username}" title="Usuario" required="true" validatorMessage="El número 0 es inválido" >
<f:validateLength minimum="1" maximum="100" />
</p:inputText>
<p:outputLabel for="password" value="Contraseña:" />
<p:password id="password" value="#{demoBeanLogin.password}" title="Contraseña" required="true" validatorMessage="El número 0 es inválido">
<f:validateLength minimum="1" maximum="100" />
</p:password>
<h:commandButton value="Iniciar sesión" action="#{demoBeanLogin.buscarPorLogin}" />
<p:message for="loginForm" id="errorMessage" />
</h:panelGrid>
</h:form>
</h:body>
</html>