You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
5.7 KiB
118 lines
5.7 KiB
<?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:ui="http://xmlns.jcp.org/jsf/facelets"
|
|
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
|
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
|
xmlns:p="http://primefaces.org/ui">
|
|
|
|
<body>
|
|
|
|
<ui:composition template="./template/ejemploJazmin.xhtml">
|
|
|
|
<ui:define name="top">
|
|
top
|
|
</ui:define>
|
|
|
|
<ui:define name="left">
|
|
left
|
|
</ui:define>
|
|
|
|
<ui:define name="content">
|
|
<f:view>
|
|
|
|
<h:form>
|
|
<p:commandButton action="CrearEditarUsuario.xhtml" actionListener="#{usuariosBean.prepararNuevoUsuario()}" value="Nueva Usuario" />
|
|
<h1><h:outputText value="List"/></h1>
|
|
<p:dataTable value="#{usuariosBean.usuarios}" var="item">
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="IdUsuarios"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.idUsuarios}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Usuario"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.usuario}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Password"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.password}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Nombre"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.nombre}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Apaterno"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.apaterno}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Amaterno"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.amaterno}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Domicilio"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.domicilio}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Telefono"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.telefono}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Fechanacimiento"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.fechanacimiento}">
|
|
<f:convertDateTime pattern="MM/dd/yyyy" />
|
|
</h:outputText>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Tiposangre"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.tiposangre}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Status"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.status == 1 ? 'Activo' : 'Inactivo'}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="RolidRol"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.rolidRol.nombreRol}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Opciones"/>
|
|
</f:facet>
|
|
<p:commandButton action="CrearEditarUsuario.xhtml" actionListener="#{usuariosBean.prepararEditarUsuario(item)}" value="Editar" ajax="false"/>
|
|
<p:commandButton action="eliminarUsuario.xhtml" actionListener="#{usuariosBean.preparaEliminarUsuario(item)}" value="Eliminar" ajax="false"/>
|
|
</p:column>
|
|
</p:dataTable>
|
|
</h:form>
|
|
</f:view>
|
|
|
|
</ui:define>
|
|
|
|
</ui:composition>
|
|
|
|
</body>
|
|
</html>
|
|
|