Professional Documents
Culture Documents
New 15
New 15
org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
</p:panelGrid>
<div id="panelAdicionar" style="text-align:center;margin-top:10px;margin
-bottom: 10px">
<p:commandButton value="Adicionar" action="#{acaoBean.addPartici
pante()}" update="dtParticipantes" readonly="#{acaoBean.somenteLeitura}" />
</div>
<p:panel header="Lista " style="margin-bottom:20px">
<p:dataTable id="dtParticipantes"
var="y"
selectionMode="single"
rowKey="#{y.id}"
selection="#{acaoBean.participante}"
value="#{acaoBean.acao.participanteCollection}">
<p:column headerText="Nome">
<h:outputText value="#{y.pessoa.nome}" />
</p:column>
<p:column headerText="Tipo de participao">
<h:outputText value="#{y.participacao.descricao}"/>
</p:column>
</p:dataTable>
</p:panel>
</p:panel>
</ui:composition>