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="perguntaNodo" styleClass="edit">
17 <f:facet name="header">#{perguntaNodoHome.managed ? 'Edit' : 'Add'} Pergunta nodo</f:facet>
21 <s:decorate id="nodoIdField" template="/layout/edit.xhtml">
22 <ui:define name="label">Nodo</ui:define>
23 <h:inputText id="nodoId"
24 value="#{nodoHome.instance.id}">
29 <s:decorate id="textoField" template="/layout/edit.xhtml">
30 <ui:define name="label">Texto</ui:define>
31 <h:inputTextarea id="texto"
34 value="#{perguntaNodoHome.instance.texto}"/>
37 <div style="clear:both">
38 <span class="required">*</span>
44 <div class="actionButtons">
46 <h:commandButton id="save"
48 action="#{perguntaNodoHome.persist}"
49 disabled="#{!perguntaNodoHome.wired}"
50 rendered="#{!perguntaNodoHome.managed}"/>
52 <h:commandButton id="update"
54 action="#{perguntaNodoHome.update}"
55 rendered="#{perguntaNodoHome.managed}"/>
57 <h:commandButton id="delete"
59 action="#{perguntaNodoHome.remove}"
61 rendered="#{perguntaNodoHome.managed}"/>
63 <s:button id="cancelEdit"
66 view="/seguro/admin/rede/PerguntaNodo.xhtml"
67 rendered="#{perguntaNodoHome.managed}"/>
69 <s:button id="cancelAdd"
72 view="/#{empty perguntaNodoFrom ? 'seguro/admin/rede/PerguntaNodoList' : perguntaNodoFrom}.xhtml"
73 rendered="#{!perguntaNodoHome.managed}"/>