celleditorlistener

Updating entire <p:dataTable> on complete of <p:ajax event=“cellEdit”>

放肆的年华 提交于 2019-12-17 07:17:29
问题 I am having difficulty re-rendering a PrimeFaces Datatable once a cell has been edited. Changing the value in one cell may change entries in the other cells, hence the need to refresh the entire table. Here's the JSF page: <h:form id="testForm"> <p:outputPanel id="testContainer"> <p:dataTable id="testTable" value="#{tableBean.data}" var="entry" editable="true" editMode="cell"> <p:ajax event="cellEdit" listener="#{tableBean.onCellEdit}" update=":testForm:testContainer" /> <p:column headerText=

Updating entire <p:dataTable> on complete of <p:ajax event=“cellEdit”>

感情迁移 提交于 2019-12-17 07:17:07
问题 I am having difficulty re-rendering a PrimeFaces Datatable once a cell has been edited. Changing the value in one cell may change entries in the other cells, hence the need to refresh the entire table. Here's the JSF page: <h:form id="testForm"> <p:outputPanel id="testContainer"> <p:dataTable id="testTable" value="#{tableBean.data}" var="entry" editable="true" editMode="cell"> <p:ajax event="cellEdit" listener="#{tableBean.onCellEdit}" update=":testForm:testContainer" /> <p:column headerText=

PrimeFaces data table In-Cell Editing : I can't get the edited object

*爱你&永不变心* 提交于 2019-12-11 07:38:09
问题 I'm experimenting with DataTable - Cell Editing as shown in PrimeFaces showcase. I've modified the Facelets code as consequence of this question: primefaces in-cell-editing not update data in database because the <p:ajax event="cellEdit"> didn't update the entire data table. <h:form id="form"> <p:outputPanel id="testContainer" deferred="true"> <p:growl id="messages" showDetail="true" /> <p:remoteCommand name="onCellEdit" action="#{articlesbean.onCellEdit()}" update=":form:messages" /> <p