-
Notifications
You must be signed in to change notification settings - Fork 0
/
cadastrarUsuario.xhtml
85 lines (54 loc) · 3.03 KB
/
cadastrarUsuario.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
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<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:p="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<link rel="stylesheet" type="text/css" href="../css/estilo.css"/>
</h:head>
<h:body>
<ui:composition template="../templates/interna.xhtml">
<ui:define name="body">
<br />
<h:form>
<p:growl id="msg" showDetail="true" life="1000"/>
<p:messages id="messages" />
<p:growl id="growl" showDetail="true" sticky="true" life="1000" />
<p:panelGrid id="grid" columns="2" style="width: 500px;">
<f:facet name="header">
Cadastro de Usuario
</f:facet>
<h:outputText value="Nome: *" />
<p:inputText id="nome" required="true" value="#{usuarioBean.usuario.nome}">
<p:message for="nome" />
</p:inputText>
<h:outputText value="Email: *" />
<p:inputText id="email" required="true" value="#{usuarioBean.usuario.email}">
<p:message for="email" />
</p:inputText>
<h:outputText value="Login: *" />
<p:inputText id="login" required="true" value="#{usuarioBean.usuario.login}">
<p:message for="login" />
</p:inputText>
<h:outputText value="Senha: " />
<p:password id="senha" feedback="true" value="#{usuarioBean.usuario.senha}"/>
<h:outputText value="Cargo: *" />
<p:inputText id="cargo" required="true" value="#{usuarioBean.usuario.cargo}"/>
<h:outputText value="Adiministrador: " />
<p:selectBooleanButton value="#{usuarioBean.usuario.papel}" onLabel="Sim" offLabel="Não" onIcon="ui-icon-check" offIcon="ui-icon-close" />
<h:outputText value="Status: " />
<p:selectBooleanButton value="#{usuarioBean.usuario.status}" onLabel="Sim" offLabel="Não" onIcon="ui-icon-check" offIcon="ui-icon-close" />
<f:facet name="footer">
<center>
<p:commandButton value="Limpar" type="reset" />
<p:commandButton value="Save" actionListener="#{usuarioBean.novo()}" update="growl,grid"/>
</center>
</f:facet>
</p:panelGrid>
<p></p>
</h:form>
</ui:define>
</ui:composition>
</h:body>
</html>