Upload de rede bayesiana.
[simdecs_seam.git] / SimDeCS / WebContent / seguro / admin / rede / ArquivoRedeList.xhtml
diff --git a/SimDeCS/WebContent/seguro/admin/rede/ArquivoRedeList.xhtml b/SimDeCS/WebContent/seguro/admin/rede/ArquivoRedeList.xhtml
new file mode 100644 (file)
index 0000000..c183bd1
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
+                             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+                xmlns:s="http://jboss.com/products/seam/taglib"
+                xmlns:ui="http://java.sun.com/jsf/facelets"
+                xmlns:f="http://java.sun.com/jsf/core"
+                xmlns:h="http://java.sun.com/jsf/html"
+                xmlns:rich="http://richfaces.org/rich"
+                template="/layout/template.xhtml">
+                       
+       <ui:define name="body">
+           
+           <h:messages globalOnly="true" styleClass="message"/>
+           
+           <rich:panel>
+               <f:facet name="header">Redes Bayesianas Cadastradas</f:facet>
+               
+               <div class="results">
+               
+                   <h:outputText value="Não existem redes cadastradas" rendered="#{empty arquivoRedeList.resultList}"/>
+                          
+                   <rich:dataTable id="arquivoRedeList" 
+                                        var="arquivoRede"
+                                value="#{arquivoRedeList.resultList}" 
+                                        rendered="#{not empty arquivoRedeList.resultList}">
+                       <rich:column>
+                           <f:facet name="header">Arquivo</f:facet>
+                           <s:link value="#{arquivoRede.nome}" view="/seguro/admin/rede/ArquivoRede.xhtml">
+                               <f:param name="arquivoRedeId" value="${arquivoRede.id}" />
+                           </s:link>
+                       </rich:column>
+                       <rich:column>
+                           <f:facet name="header">Tipo</f:facet>
+                           #{arquivoRede.contentType}
+                       </rich:column>
+                       <rich:column>
+                           <f:facet name="header">Tamanho (bytes)</f:facet>
+                           #{arquivoRede.tamanho}
+                       </rich:column>
+                       <rich:column>
+                           <f:facet name="header">Ações</f:facet>
+                           <s:link value="Download" action="#{downloadArquivoRede.download}">
+                                   <f:param name="arquivoRedeId" value="${arquivoRede.id}" />
+                               </s:link>
+                               <br></br>
+                               <s:link value="Delete" action="#{arquivoRedeHome.remove}">
+                                   <f:param name="arquivoRedeId" value="${arquivoRede.id}" />
+                               </s:link>
+                       </rich:column>
+                   </rich:dataTable>
+                   
+               </div>
+               
+           </rich:panel>
+           
+           <div class="actionButtons">
+               <s:button id="done" 
+                      value="Upload de Rede Bayesiana"
+                       view="/seguro/admin/rede/ArquivoRede.xhtml"/>                     
+           </div>
+           
+       </ui:define>
+
+</ui:composition>
\ No newline at end of file