/
login.xhtml
51 lines (47 loc) · 2.09 KB
/
login.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:b="http://bootsfaces.net/ui"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:pt="http://xmlns.jcp.org/jsf/passthrough">
<f:view>
<h:head>
<title>Template Application</title>
</h:head>
<h:body>
<b:container>
<h:form id="loginForm">
<b:panelGrid colSpans="3,6,3">
#{" "}
<h:panelGroup>
<p:messages id="loginFormMessages" autoUpdate="false"/>
<b:panelGrid colSpans="4,8">
<h:outputLabel value="Email: "/>
<b:inputText id="email" value="#{sessionMB.email}" required="true"
label="Email" renderLabel="false">
<f:facet name="prepend">
<b:iconAwesome name="envelope"/>
</f:facet>
</b:inputText>
<h:outputLabel value="Password: "/>
<b:inputText type="password" id="password" value="#{sessionMB.password}" required="true"
converter="#{CharArrayConverter}" label="Password"
renderLabel="false">
<f:facet name="prepend">
<b:iconAwesome name="key"/>
</f:facet>
</b:inputText>
</b:panelGrid>
<b:commandButton value="Login" action="#{sessionMB.loginAction()}" update="loginFormMessages"/>
</h:panelGroup>
#{" "}
</b:panelGrid>
</h:form>
</b:container>
</h:body>
</f:view>
</html>