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
1) use just reRender = table id..
2) minor note - form should be inside the panel. (or check domElementAttachment attribute. use form or parent to leave form outside)