I have a datatable with 3 rows. Each row is a text area. I want to auto save the contents in them. I tried using primefaces poll. Poll gets triggered only when
process="@form"
but then the content in the textarea does not get passed to the backing bean. And if I change process=":tabView:tab2form:table1"
, poll does not get triggered. Here is my code
<p:dataTable id="table1" var="reportCommentary" value="#{managedBean.reportCommentaries}" >
<p:column headerText="Report Commentary Edit">
<h:outputText value="Commentary:" />
<p:inputTextarea id ="commentaryEditor"
maxlength="#{managedBean.maxCommentaries}"
value="#{reportCommentary}"
rows="20"
cols="100"
widgetVar="commentaryEditor"
autoResize="false"
counter="counter"/>
<h:outputText id="counter"/>
</p:column>
</p:dataTable>
<p:poll interval="30"
listener="#{managedBean.onCellEdit}"
partialSubmit="true"
process=":tabView:tab2form:table1"/>
And my backing bean (Session Scoped):
public void onCellEdit(){
// it never comes here
}
Any help will be really appreciated.