Added perguntas.
[simdecs_seam.git] / SimDeCS / WebContent / seguro / admin / rede / NodoEdit.xhtml
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:a="http://richfaces.org/a4j"
9     xmlns:rich="http://richfaces.org/rich"
10     template="/layout/template.xhtml">
11
12 <ui:define name="body">
13
14     <h:form id="nodo" styleClass="edit">
15
16         <rich:panel>
17             <f:facet name="header">#{nodoHome.managed ? 'Edit' : 'Add'} Nodo</f:facet>
18
19
20
21             <s:decorate id="redeBayesianaIdField" template="/layout/edit.xhtml">
22                 <ui:define name="label">Rede bayesiana</ui:define>
23                 <h:outputText id="redeBayesianaNome"
24                           value="#{nodoHome.instance.redeBayesiana.nome}">
25                 </h:outputText>
26             </s:decorate>
27
28
29             <s:decorate id="nomeField" template="/layout/edit.xhtml">
30                 <ui:define name="label">Nome</ui:define>
31                 <h:outputText id="nome"
32                            size="45"
33                       maxlength="45"
34                           value="#{nodoHome.instance.nome}">
35                     <a:support event="onblur" reRender="nomeField" bypassUpdates="true" ajaxSingle="true"/>
36                 </h:outputText>
37             </s:decorate>
38
39
40             <s:decorate id="custoField" template="/layout/edit.xhtml">
41                 <ui:define name="label">Custo</ui:define>
42                 <h:inputText id="custo"
43                           value="#{nodoHome.instance.custo}">
44                     <a:support event="onblur" reRender="custoField" bypassUpdates="true" ajaxSingle="true"/>
45                 </h:inputText>
46             </s:decorate>
47
48
49             <s:decorate id="tempoField" template="/layout/edit.xhtml">
50                 <ui:define name="label">Tempo</ui:define>
51                 <h:inputText id="tempo"
52                           value="#{nodoHome.instance.tempo}">
53                     <a:support event="onblur" reRender="tempoField" bypassUpdates="true" ajaxSingle="true"/>
54                 </h:inputText>
55             </s:decorate>
56
57             <div style="clear:both">
58                 <span class="required">*</span>
59                 required fields
60             </div>
61
62         </rich:panel>
63
64         <div class="actionButtons">
65
66             <h:commandButton id="save"
67                           value="Salvar"
68                          action="#{nodoHome.persist}"
69                        disabled="#{!nodoHome.wired}"
70                        rendered="#{!nodoHome.managed}"/>
71
72             <h:commandButton id="update"
73                           value="Salvar"
74                          action="#{nodoHome.update}"
75                        rendered="#{nodoHome.managed}"/>
76
77             <s:button id="cancelEdit"
78                    value="Cancelar"
79              propagation="end"
80                     view="/seguro/admin/rede/Nodo.xhtml"
81                 rendered="#{nodoHome.managed}"/>
82
83             <s:button id="cancelAdd"
84                    value="Cancelar"
85              propagation="end"
86                     view="/seguro/admin/rede/RedeBayesianaList.xhtml"
87                 rendered="#{!nodoHome.managed}"/>
88
89         </div>
90     </h:form>
91
92 </ui:define>
93
94 </ui:composition>