login.xhtml
3 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE composition 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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.prime.com.tr/ui">
<f:view locale="pt_BR" contentType="text/html">
<h:head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<f:metadata>
<f:event type="preRenderView" listener="#{SEGBean.carregarNome}" />
</f:metadata>
<f:loadBundle basename="constantes" var="const" />
<h:outputStylesheet library="design/css" name="default.css" />
<link type="text/css" rel="stylesheet"
href="/#{const.context_path}/resources/design/primefaces/themes.css" />
<h:outputScript library="design/js" name="validation.js" target="head" />
<h:outputScript library="primefaces" name="jquery/jquery.js"
target="head" />
<h:outputScript library="design/js" name="jquery.alphanumeric.pack.js" />
<h:outputScript library="design/js" name="jquery.numeric.js" />
<h:outputScript library="design/js" name="jquery.maskMoney.js" />
<h:outputScript library="design/js"
name="jquery.maskedinput-1.3.min.js" />
<h:outputScript library="themes/js" name="utils.js" target="head" />
<title><h:outputText
value="Protocolo Eletrônico :: [[versao] 1.0.0]" /></title>
<ui:insert name="head"></ui:insert>
</h:head>
<h:body>
<p:ajaxStatus onstart="statusDialog.show();"
onsuccess="statusDialog.hide();" />
<p:dialog showHeader="false" modal="true" widgetVar="statusDialog"
draggable="false" closable="false" resizable="false"
style="padding-top:5px">
<p:graphicImage value="imagens/ajaxloadingbar.gif" />
</p:dialog>
<h:form id="form" styleClass="semBorda">
<p:dialog id="autenticacaoDialog"
header="Protocolo Eletrônico - Ministério da Justiça" modal="false"
draggable="false" closable="false" resizable="true"
showEffect="clip" hideEffect="" visible="true" position="center">
<h:messages />
<p:focus context="autenticacaoDialog" />
<h:panelGrid columns="2"
style="margin-bottom:10px;text-align:center; width : 100%;">
<h:outputLabel id="lb_authUsuario" for="authUsuario"
value="Usuário:" />
<p:inputText id="authUsuario" required="true"
value="#{loginUsuarioBean.nome}" title="Usuário"
requiredMessage="O campo usuário é obrigatório" />
<h:outputLabel id="lb_authSenha" for="authSenha" value="Senha:" />
<p:password id="authSenha" required="false" title="Senha"
value="#{loginUsuarioBean.senha}"
requiredMessage="O campo senha é obrigatório" />
</h:panelGrid>
<h:panelGrid columns="1" style="text-align:center; width : 100%;">
<p:commandButton id="btnAutenticar" value="Autenticar" ajax="false"
action="#{loginUsuarioBean.loginInterno}" update=":form:" />
</h:panelGrid>
</p:dialog>
</h:form>
</h:body>
</f:view>
</html>