@ -5,7 +5,17 @@
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:p="http://primefaces.org/ui">
< style >
body {
background-image: url('https://i.pinimg.com/originals/b7/8e/38/b78e38afa122ed09c12675d352e1ec3d.jpg');
background-repeat: no-repeat;
background-size: cover;
}
< / style >
< body >
< ui:composition template = "./template/VistasChidas.xhtml" >
@ -14,47 +24,47 @@
< h:form >
< p:menubar >
< p:submenu label = "USUARIOS" icon = "pi pi-user" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "usuarioLista.xhtml" / >
< p:menuitem value = "Agregar" action = "usuarioLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "PRODUCTOS" icon = "pi pi-shopping-bag" style = "font-size: 15px;" >
< p:menuitem value = "Ir" action = "ProductoLista.xhtml" / >
< p:menuitem value = "Ir" action = "ProductoLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "MARCA" icon = "pi pi-tags" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "MarcaLista.xhtml" / >
< p:menuitem value = "Agregar" action = "MarcaLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "CATEGORIA" icon = "pi pi-th-large" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "CategoriaLista.xhtml" / >
< p:menuitem value = "Agregar" action = "CategoriaLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "PASILLO" icon = "pi pi-paypal" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "PasilloLista.xhtml" / >
< p:menuitem value = "Agregar" action = "PasilloLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "RESGUARDO" icon = "pi pi-cloud" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "ResguardoLista.xhtml" / >
< p:menuitem value = "Agregar" action = "ResguardoLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "ROL" icon = "pi pi-id-card" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "RolLista.xhtml" / >
< p:menuitem value = "Agregar" action = "RolLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "UBICACION" icon = "pi pi-map" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "UbicacionLista.xhtml" / >
< p:menuitem value = "Agregar" action = "UbicacionLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "ESTANTE" icon = "pi pi-map-marker" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "estanteLista.xhtml" / >
< p:menuitem value = "Agregar" action = "estanteLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "PROVEEDORES" icon = "pi pi-users" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "proveedoresLista.xhtml" / >
< p:menuitem value = "Agregar" action = "proveedoresLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "Cerrar sesion" icon = "pi pi-sign-out" style = "font-size: 15px; " >
< p:menuitem value = "Cerrar" action = "#{login.logout}" / >
< p:menuitem value = "Cerrar" action = "#{login.logout}" ajax = "false" / >
< / p:submenu >
@ -72,7 +82,7 @@
< h:form id = "formtabla" >
< h1 style = "text-align: center; background-color: #5F9FDB; padding: 30px; color: #000 ; font-size: 2em; margin-bottom: 20px;" > LISTA PRODUCTOS< / h1 >
< h1 style = "text-align: center; background-color: #5F9FDB; color: #000; padding: 30px; font-size: 2em; margin-bottom: 20px;" > LISTA PRODUCTOS< / h1 >
< p:dataTable id = "tabla" value = "#{productoBean.productos}" var = "item"
@ -80,7 +90,10 @@
emptyMessage="No customers found with given criteria"
filteredValue="#{productoBean.filteredCustomers3}"
globalFilterFunction="#{productoBean.globalFilterFunction}"
scrollable="true" scrollHeight="350">
scrollable="true" scrollHeight="350"
>
< f:facet name = "header" >
< div class = "flex justify-content-end" >
< p:inputText id = "globalFilter" onkeyup = "PF('customersTable3').filter()" style = "width:300px; float: right; "
@ -178,7 +191,7 @@
< h:panelGrid id = "grid" columns = "3" >
< p:outputLabel value = "Codigo:" for = "codigo" / >
< p:inputText id = "codigo" value = "#{productoBean.producto.codigo}" title = "Codigo" required = "true" validatorMessage = "Solo se aceptan Numeros" requiredMessage = "Este campo es requerido." >
< p:inputText id = "codigo" value = "#{productoBean.producto.codigo}" title = "Codigo" required = "true" validatorMessage = "Son 10 Numeros" requiredMessage = "Este campo es requerido." >
< f:validateRegex pattern = "^\d{10}$" for = "codigo" / >
< / p:inputText >
< p:message for = "codigo" / >