Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

import project

  • Loading branch information...
commit 4c38700d340cc68db739a8611c1f250470645ca5 1 parent 0782b1d
@renanol authored
View
BIN  WebContent/WEB-INF/lib.zip
Binary file not shown
View
40 WebContent/admin/cadastrarUsuario.xhtml
@@ -14,13 +14,14 @@
<ui:composition template="../templates/interna.xhtml">
- <ui:define name="body">
-
+ <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" />
-
+
@@ -74,39 +75,6 @@
<p></p>
- <p:tabView id="tabView" var="usuario" value="#{usuarioBean.listar()}">
-
- <p:tab id="playerTab" title="#{usuario.nome}">
-
- <h:panelGrid columns="2" cellpadding="10">
- <p:graphicImage id="playerImg" value="/images/barca/#{player.photo}" />
-
- <h:panelGrid columns="2" cellpadding="10">
- <h:outputText value="Nome: " />
- <h:outputText id="playerName" value="#{usuario.nome}" style="font-weight: bold"/>
-
- <h:outputText value="Email: " />
- <h:outputText id="playerNumber" value="#{usuario.email}" style="font-weight: bold"/>
-
- <h:outputText value="Login: " />
- <h:outputText id="playerPosition" value="#{usuario.login}" style="font-weight: bold"/>
-
- <h:outputText value="Cargo: " />
-
- <p:inplace id="ajaxInplace" editor="true">
- <p:inputText value="#{usuario.cargo}"
- required="true" label="cargo"/>
- </p:inplace>
- <p:commandButton actionListener="#{usuarioBean.remover()}" value="Alterar" update="playerTab"></p:commandButton>
- </h:panelGrid>
-
- </h:panelGrid>
-
- </p:tab>
-
- </p:tabView>
-
-
</h:form>
</ui:define>
View
61 WebContent/css/estilo.css
@@ -1,40 +1,43 @@
body {
-
- background-color:#ccc;
- font:12px Arial, Helvetica, sans-serif;
- margin:0;
- padding:0;
- text-align:center; /* hack para o IE */
+ background-image: linear-gradient(bottom, rgb(133, 130, 133) 43%,
+ rgb(28, 26, 21) 100% );
+ background-image: -o-linear-gradient(bottom, rgb(133, 130, 133) 43%,
+ rgb(28, 26, 21) 100% );
+ background-image: -moz-linear-gradient(bottom, rgb(133, 130, 133) 43%,
+ rgb(28, 26, 21) 100% );
+ background-image: -webkit-linear-gradient(bottom, rgb(133, 130, 133) 43%,
+ rgb(28, 26, 21) 100% );
+ background-image: -ms-linear-gradient(bottom, rgb(133, 130, 133) 43%,
+ rgb(28, 26, 21) 100% );
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.43, rgb(133
+ , 130, 133) ), color-stop(1, rgb(28, 26, 21) ) );
+ font: 12px Arial, Helvetica, sans-serif;
+ margin: 0;
+ padding: 0;
+ text-align: center; /* hack para o IE */
}
-.login {
- margin-top: -100px;
- margin-left: -100px;
- left: 50%;
- top: 50%;
- position: fixed;
-
-}
-
-#container{
-
-
-
-
+.login {
+ margin-top: -100px;
+ margin-left: -100px;
+ left: 50%;
+ top: 50%;
+ position: fixed;
}
-#menu{
-
- width: 960px;
-
+#container {
+
}
-#all{
- width: 960px;
- margin:0 auto;
+#menu {
+ width: 960px;
}
-.header{
- height: 100px;
+#all {
+ width: 960px;
+ margin: 0 auto;
}
+.header {
+ height: 100px;
+}
View
82 WebContent/home.xhtml
@@ -0,0 +1,82 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE html 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:p="http://primefaces.org/ui">
+<h:head>
+ <title>Login</title>
+
+
+ <link rel="stylesheet" type="text/css" href="css/estilo.css" />
+
+
+</h:head>
+<h:body>
+
+ <p:dataTable id="cars" var="car" value="#{tableBean.carsSmall}"
+ tableStyle="width:auto">
+
+ <p:column headerText="Model" style="width:100px">
+ <h:outputText value="#{car.model}" />
+ </p:column>
+
+ <p:column headerText="Year" style="width:100px">
+ <h:outputText value="#{car.year}" />
+ </p:column>
+
+ <p:column headerText="Manufacturer" style="width:100px">
+ <h:outputText value="#{car.manufacturer}" />
+ </p:column>
+
+ <p:column headerText="Color" style="width:100px">
+ <h:outputText value="#{car.color}" />
+ </p:column>
+
+ <p:column style="width:40px">
+ <h:panelGrid columns="3" styleClass="actions" cellpadding="2">
+ <p:commandButton id="selectButton" update=":form:display"
+ oncomplete="carDialog.show()" icon="ui-icon-search" title="View">
+ <f:setPropertyActionListener value="#{car}"
+ target="#{tableBean.selectedCar}" />
+ </p:commandButton>
+ </h:panelGrid>
+ </p:column>
+
+ </p:dataTable>
+
+ <p:dialog header="Car Detail" widgetVar="carDialog" resizable="false"
+ id="carDlg" showEffect="fade" hideEffect="explode" modal="true">
+
+ <h:panelGrid id="display" columns="2" cellpadding="4"
+ style="margin:0 auto;">
+
+ <f:facet name="header">
+ <p:graphicImage
+ value="/images/cars/#{tableBean.selectedCar.manufacturer}.jpg" />
+ </f:facet>
+
+ <h:outputText value="Model:" />
+ <h:outputText value="#{tableBean.selectedCar.model}"
+ style="font-weight:bold" />
+
+ <h:outputText value="Year:" />
+ <h:outputText value="#{tableBean.selectedCar.year}"
+ style="font-weight:bold" />
+
+
+ <h:outputText value="Manufacturer:" />
+ <h:outputText value="#{tableBean.selectedCar.manufacturer}"
+ style="font-weight:bold" />
+
+ <h:outputText value="Color:" />
+ <h:outputText value="#{tableBean.selectedCar.color}"
+ style="font-weight:bold" />
+
+ </h:panelGrid>
+
+ </p:dialog>
+
+</h:body>
+</html>
+
View
84 WebContent/restrito/home.xhtml
@@ -0,0 +1,84 @@
+<?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">
+ <h1 class="title ui-widget-header ui-corner-all">Panel</h1>
+ <p:dataTable id="usuario" var="usuario" value="#{usuarioBean.listar}"
+ tableStyle="width:auto">
+
+ <p:column headerText="Nome" style="width:100px">
+ <h:outputText value="#{usuario.nome}" />
+ </p:column>
+
+ <p:column headerText="Email" style="width:100px">
+ <h:outputText value="#{usuario.email}" />
+ </p:column>
+
+ <p:column headerText="Cargo" style="width:100px">
+ <h:outputText value="#{usuario.cargo}" />
+ </p:column>
+
+ <p:column headerText="Login" style="width:100px">
+ <h:outputText value="#{usuario.login}" />
+ </p:column>
+
+ <p:column style="width:40px">
+ <h:panelGrid columns="3" styleClass="actions" cellpadding="2">
+ <p:commandButton id="selectButton" update=":form:display"
+ oncomplete="carDialog.show()" icon="ui-icon-search" title="View">
+ <f:setPropertyActionListener value="#{usuario}"
+ target="#{usuarioBean.usuario}" />
+ </p:commandButton>
+ </h:panelGrid>
+ </p:column>
+
+ </p:dataTable>
+
+ <p:dialog header="Car Detail" widgetVar="carDialog" resizable="false"
+ id="carDlg" showEffect="fade" hideEffect="explode" modal="true">
+
+ <h:panelGrid id="display" columns="2" cellpadding="4"
+ style="margin:0 auto;">
+
+ <f:facet name="header">
+
+ </f:facet>
+
+ <h:outputText value="Model:" />
+ <h:outputText value="#{usuarioBean.usuario.nome}"
+ style="font-weight:bold" />
+
+ <h:outputText value="Year:" />
+ <h:outputText value="#{usuarioBean.usuario.email}"
+ style="font-weight:bold" />
+
+
+ <h:outputText value="Manufacturer:" />
+ <h:outputText value="#{usuarioBean.usuario.cargo}"
+ style="font-weight:bold" />
+
+ <h:outputText value="Color:" />
+ <h:outputText value="#{usuarioBean.usuario.login}"
+ style="font-weight:bold" />
+
+ </h:panelGrid>
+
+ </p:dialog>
+ </ui:define>
+
+ </ui:composition>
+</h:body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.