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"
9 template="/layout/template.xhtml">
11 <ui:define name="body">
14 <f:facet name="header">Pergunta nodo</f:facet>
17 <s:decorate id="nodoId" template="/layout/display.xhtml">
18 <ui:define name="label">Nodo id</ui:define>
19 <h:outputText value="#{perguntaNodoHome.instance.nodo.id}"/>
22 <s:decorate id="texto" template="/layout/display.xhtml">
23 <ui:define name="label">Texto</ui:define>
24 <h:outputText value="#{perguntaNodoHome.instance.texto}"/>
27 <div style="clear:both"/>
28 <div class="actionButtons">
30 <s:button view="/seguro/admin/rede/PerguntaNodoEdit.xhtml"
33 <s:button id="perguntaButton"
35 view="/seguro/admin/rede/PerguntaNodoList.xhtml"/>
40 <f:facet name="header">
41 <h:outputText value="#{perguntaHome.instance.respostas.size()} Respostas(s)"></h:outputText>
44 <rich:dataTable value="#{respostaNodoList.resultList}" var="_respostaNodo">
45 <f:facet name="header">
48 <h:outputText value="Id"/>
51 <h:outputText value="Texto"/>
54 <h:outputText value="Percentual"/>
57 <h:outputText value="Ação"/>
61 <rich:column rendered="#{_respostaNodo.pergunta.id == perguntaNodoHome.instance.id}">
62 <h:outputText value="#{_respostaNodo.id}"/>
64 <rich:column rendered="#{_respostaNodo.pergunta.id == perguntaNodoHome.instance.id}">
65 <h:outputText value="#{_respostaNodo.texto}"/>
67 <rich:column rendered="#{_respostaNodo.pergunta.id == perguntaNodoHome.instance.id}">
68 <h:outputText value="#{_respostaNodo.percentual}"/>
70 <rich:column rendered="#{_respostaNodo.pergunta.id == perguntaNodoHome.instance.id}">
71 <s:link value="Ver" view="/seguro/admin/rede/RespostaNodo.xhtml">
72 <f:param name="respostaNodoId" value="${_respostaNodo.id}"/>
75 <s:link value="Editar" view="/seguro/admin/rede/RespostaNodoEdit.xhtml">
76 <f:param name="respostaNodoId" value="${_respostaNodo.id}"/>
81 <s:div styleClass="actionButtons" rendered="#{empty from}">
82 <s:button view="/seguro/admin/rede/RespostaNodoEdit.xhtml"
85 value="Criar resposta">
86 <f:param name="respostaNodoId"/>
87 <f:param name="nodoId"/>
89 <s:button id="respostaButton"
91 view="/seguro/admin/rede/RespostaNodoList.xhtml"/>