<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<html>

 <f:view>
 <head>
    <title>JSF Library Login</title>
    <link rel="stylesheet" type="text/css" href='<%= request.getContextPath() + "/css/app.css" %>'>
 </head>
 <body>
    <h1>JSF Library Login</h1>
    <hr>
    In order to borrow or add books you must log into the Library application.

    <h:messages showDetail="true" warnClass="loginWarning" layout="table"/>

 <h:form>

    <table>
    <tr>
    <td>Username:</td>
    <td><h:inputText value="#{loginform.username}"/></td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><h:inputSecret value="#{loginform.password}"/></td>
    </tr>
    </table>

    <p>
    <h:commandButton value="Login"
         action="#{loginform.confirmCredentials}"/>
    </p>

</h:form>
</body>
</f:view>
</html>