-
1. Rendering an ExtendedDataTable after changing an other one
ilya_shaikovsky May 3, 2011 8:17 AM (in response to dandii)That should works:
<h:form>
<div><a4j:region id="region">
<rich:extendedDataTable
id="firstTable"
value="#{firstList.all}"
var="first"
selection="#{firstSelectionBean.selection}"
rendered="#{not empty firstList.all}"
selectionMode="single" >
<a4j:ajax execute="@form" event="selectionchange"
listener="#{firstSelectionBean.selectionListener}"
render="tableToUpdate" />
<rich:column>...</rich:column>
<rich:column>...</rich:column>
<rich:column>...</rich:column>
</rich:extendedDataTable>
</a4j:region></div>
<div style="margin-top: 10px;"><a4j:region id="runTableRegion">
<a4j:outputPanel layout="block" id="tableToUpdate">
<rich:extendedDataTable
id="secondTable"
value="#{secondList.getItems(firstController.item)}"
rendered="#{not empty secondList.getItems(firstController.item)}"
var="second"
selection="#{secondSelectionBean.selection}"
selectionMode="single">
<rich:column>...</rich:column>
<rich:column>...</rich:column>
<rich:column>...</rich:column>
</rich:extendedDataTable>
</a4j:outputPanel>
</a4j:region></div>
</h:form> -
2. Rendering an ExtendedDataTable after changing an other one
dandii May 4, 2011 7:13 AM (in response to ilya_shaikovsky)Hi Ilya,
that's it... Thanks a lot!