Refactorings for RedeBayesiana and ArquivoRedeBayesiana.
[simdecs_seam.git] / SimDeCS / WebContent / seguro / admin / rede / ArquivoRedeBayesiana.xhtml
CommitLineData
6f43ba4a
MS
1<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<ui:composition xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:s="http://jboss.com/products/seam/taglib"
5 xmlns:ui="http://java.sun.com/jsf/facelets"
6 xmlns:f="http://java.sun.com/jsf/core"
7 xmlns:h="http://java.sun.com/jsf/html"
8 xmlns:rich="http://richfaces.org/rich" template="/layout/template.xhtml">
9
10 <ui:define name="body">
11
12 <h:messages globalOnly="true" styleClass="message" />
13
14 <h:form enctype="multipart/form-data">
15
16 <rich:panel>
17 <f:facet name="header">Upload de Rede Bayesiana</f:facet>
18
19 <s:decorate id="fileUploadDecoration" template="/layout/edit.xhtml">
20 <ui:define name="label">Arquivo</ui:define>
21 <s:fileUpload id="file"
d1c23fc5
MS
22 data="#{arquivoRedeBayesianaHome.instance.data}"
23 contentType="#{arquivoRedeBayesianaHome.instance.contentType}"
24 fileName="#{arquivoRedeBayesianaHome.instance.nome}"
25 fileSize="#{arquivoRedeBayesianaHome.instance.tamanho}" />
6f43ba4a
MS
26 </s:decorate>
27
28 <s:decorate id="nameDecoration" template="/layout/display.xhtml">
29 <ui:define name="label">Nome</ui:define>
d1c23fc5 30 <h:outputText value="#{arquivoRedeBayesianaHome.instance.nome}"/>
6f43ba4a
MS
31 </s:decorate>
32
33 <s:decorate id="contentTypeDecoration" template="/layout/display.xhtml">
34 <ui:define name="label">Tipo</ui:define>
d1c23fc5 35 <h:outputText value="#{arquivoRedeBayesianaHome.instance.contentType}"/>
6f43ba4a
MS
36 </s:decorate>
37
38 <s:decorate id="sizeDecoration" template="/layout/display.xhtml">
39 <ui:define name="label">Tamanho</ui:define>
d1c23fc5 40 <h:outputText value="#{arquivoRedeBayesianaHome.instance.tamanho}"/>
6f43ba4a
MS
41 </s:decorate>
42
43 <div style="clear: both" />
44 </rich:panel>
45
46 <div class="actionButtons">
47 <h:commandButton value="Upload"
d1c23fc5
MS
48 action="#{arquivoRedeBayesianaHome.saveNetwork}"
49 rendered="#{!arquivoRedeBayesianaHome.managed}"/>
6f43ba4a 50 <h:commandButton value="Delete"
d1c23fc5 51 action="#{arquivoRedeBayesianaHome.remove}"
6f43ba4a 52 immediate="true"
d1c23fc5 53 rendered="#{arquivoRedeBayesianaHome.managed}">
6f43ba4a
MS
54 <s:conversationPropagation type="end" />
55 </h:commandButton>
56 <s:button propagation="end"
57 id="done"
58 value="ConcluĂ­do"
d1c23fc5 59 view="/seguro/admin/rede/RedeBayesianaList.xhtml"/>
6f43ba4a
MS
60 </div>
61
62 </h:form>
63
64 </ui:define>
65
66</ui:composition>