1 Reply Latest reply on Apr 18, 2011 5:25 AM by Ilya Shaikovsky

    Richfaces 3.3.3 - refresh rich:modalPanel datatable content

    Ivan Costa Newbie

      Hi,

       

      How do I refresh only the content of a datatable inside my modelPanel when a click a commandButton inside it (without closing the modal) ?

       

       

      pageA.xhtml

       

          <ui:include src="/template/modalPessoa.xhtml">

              <ui:param name="idModalPane" value="idModalPessoa" />

          </ui:include>

       

      My modalPanel is in this fragment below:

       

       

      modalPessoa.xhtml (content simplified)

      <ui:fragment>

       

          <h:form>

       

              <div id="divModal">

       

              <rich:modalPanel id="#{idModalPane}" width="800" height="400">

       

                      <rich:dataTable id="datatable1" value="#{buscaPessoa.pessoas}"

                              binding="#{buscaPessoa.tabela}" var="item" >

       

                               <a4j:commandButton value="Pesquisar" action="#{buscaPessoa.actionModalPanel}" >

                               </a4j:commandButton>

       

       

      Thanks in advance

      Ivan