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">
12 <ui:define name="body">
14 <h:form id="nodo" styleClass="edit">
17 <f:facet name="header">#{nodoHome.managed ? 'Edit' : 'Add'} Nodo</f:facet>
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}">
29 <s:decorate id="nomeField" template="/layout/edit.xhtml">
30 <ui:define name="label">Nome</ui:define>
31 <h:outputText id="nome"
34 value="#{nodoHome.instance.nome}">
35 <a:support event="onblur" reRender="nomeField" bypassUpdates="true" ajaxSingle="true"/>
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"/>
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"/>
57 <div style="clear:both">
58 <span class="required">*</span>
64 <div class="actionButtons">
66 <h:commandButton id="save"
68 action="#{nodoHome.persist}"
69 disabled="#{!nodoHome.wired}"
70 rendered="#{!nodoHome.managed}"/>
72 <h:commandButton id="update"
74 action="#{nodoHome.update}"
75 rendered="#{nodoHome.managed}"/>
77 <s:button id="cancelEdit"
80 view="/seguro/admin/rede/Nodo.xhtml"
81 rendered="#{nodoHome.managed}"/>
83 <s:button id="cancelAdd"
86 view="/seguro/admin/rede/RedeBayesianaList.xhtml"
87 rendered="#{!nodoHome.managed}"/>