ERRO datatable RowSeletion

0 respostas
b10machado

1º da o erro nos updates // Cannot find component with identifier “:dialog:display” in view.

<h:form id="dialog">
                                <p:dataTable id="amigo" var="amigos" value="#{AmigosBean.listaAmigos}"
                                             paginator="true" rows="10" rowKey="#{amigos.idUsuario}"
                                             selection="#{AmigosBean.amigoSelecionado}" selectionMode="single">

                                    <f:facet name="header" >Lista de Amigos </f:facet>
                                    <p:column style="width:50px">
                                        <h:outputText value="#{amigos.emailAmigo}" />
                                    </p:column>

                                    <f:facet name="footer">
                                        <p:commandButton id="viewButton" value="View" icon="ui-icon-search"
                                                         update=":dialog:display"  oncomplete="amigosDialog.show()"/>
                                    </f:facet>
                                </p:dataTable>
                                <p:dialog header="Dados do Amigo" widgetVar="amigosDialog" resizable="false"
                                          showEffect="explode" hideEffect="explode">

                                    <h:panelGrid id="display" columns="2" cellpadding="4">
                                        <h:outputText value="Email:" />
                                        <h:outputText value="#{AmigosBean.amigoSelecionado.emailAmigo}"
                                                      style="font-weight:bold"/>
                                    </h:panelGrid>
                                </p:dialog>
                            </h:form>
Criado 8 de abril de 2012
Respostas 0
Participantes 1