<?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://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core" > <ui:decorate template="/WEB-INF/templates/template.xhtml"> <ui:define name="contenido"> <h:form> <p:outputPanel style="font-size: 30px;text-align: center"> <h:outputText value="Cancelar/Publicar Hechos"/> </p:outputPanel> <p:dataTable var="hecho" id="dataHecho" value="#{gestionHechos.facts}" widgetVar="NoticiasTable" emptyMessage="Hecho no encontrada" filteredValue="#{gestionHechos.filteredFacts}"> <p:column filterBy="#{hecho.title}" headerText="Titulo" filterMatchMode="contains" visible="#{!hecho.EstaVerifcado()}"> <h:outputText value="#{hecho.title}"/> </p:column> <p:column filterBy="#{hecho.description}" headerText="Descripción" filterMatchMode="contains" visible="#{!hecho.EstaVerifcado()}"> <h:outputText value="#{hecho.description}"/> </p:column> <p:column filterBy="#{hecho.actualState.value}" headerText="Estados" filterMatchMode="exact" visible="#{!hecho.EstaVerifcado()}"> <h:outputText value="#{hecho.actualState.value}"/> </p:column> <p:column headerText="" style="text-align: center" visible="#{!hecho.EstaVerifcado()}" > <p:growl id="message" showDetail="true" /> <p:commandButton value="Publicar" action="#{hecho.PublicarHecho()}" update="@form" > <p:confirm header="Confirmar" message="¿Confirmar Hecho?" icon="pi pi-exclamation-triangle" /> </p:commandButton> <p:commandButton value="Cancelar" action="#{hecho.CancelarHecho()}" update="@form" > <p:confirm header="Confirmar" message="¿Cancelar Hecho?" icon="pi pi-exclamation-triangle" /> </p:commandButton> <p:confirmDialog global="true" showEffect="fade" hideEffect="fade"> <p:commandButton value="Si" type="button" styleClass="ui-confirmdialog-yes" icon="pi pi-check" /> <p:commandButton value="No" type="button" styleClass="ui-confirmdialog-no" icon="pi pi-times" /> </p:confirmDialog> </p:column> </p:dataTable> </h:form> </ui:define> </ui:decorate> </html>