In bean method for rowEdit, beside current row changes made in GUI, we manual change values for some columns in other rows but they are not updated in page - just current row that was edited. (example: only one checkBox in table can be set to true, all other are unchecked; in bean we uncheck all other check boxes in all rows)
At the end of the method bean.onEdit, table model is refresh with all changes and set with correct data, but this data are not shown on page?? Only one row that was editing.
Part of the xhtm code:
Code: Select all
<h:form id="form-table">
<p:dataTable id="structuresTable" editable="true"
value="#{bean.structureDataModel}"
var="currRow" selection="#{bean.currentRow}"
selectionMode="single">
<p:ajax event="rowSelect"
update=":otherPanel "
listener="#{bean.onRowSelect}">
</p:ajax>
<p:ajax event="rowEdit"
update="@this :msgs"
listener="#{bean.onEdit}">
</p:ajax>
<p:column >
.......
</p:column>
</p:dataTable
</h:form>
Code: Select all
<p:ajax event="rowEdit"
update="@this :msgs"
listener="#{bean.onEdit}">
</p:ajax>
How is this caused and how can we update hole table in this case?
Thanks!
Mojarra 2.2.4, PF 4.0