我是primefaces的新手,并且不知道如何从datatable实现向managedbean发布数据。 DataTable单元格是html5 div,启用了contenteditable。我想在模糊事件上发布细胞数据。有人可以帮我解决这个问题吗?
<p:dataTable
id="workRecordItems"
var="wrItem"
value="#{workRecordBean.workRecordItems}"
style="margin-top:20px;"
styleClass="workrecord-item-data-table"
editable="true"
editMode="cell">
<p:column headerText="Opis">
<p:outputPanel styleClass="workrecord-item-data-table-content" pt:contenteditable="true">#{wrItem.note}</p:outputPanel>
</p:column>
<p:column headerText="Od" width="80">
<p:outputPanel styleClass="workrecord-item-data-table-content" pt:contenteditable="true" style="text-align:center;">#{wrItem.fromString}</p:outputPanel>
</p:column>
<p:column headerText="Do" width="80">
<p:outputPanel styleClass="workrecord-item-data-table-content" pt:contenteditable="true" style="text-align:center;">#{wrItem.toString}</p:outputPanel>
</p:column>
<p:column headerText="Čas" width="80">
<p:outputPanel styleClass="workrecord-item-data-table-content" pt:contenteditable="true" style="text-align:center;">#{wrItem.timeDiffString}</p:outputPanel>
</p:column>
<p:column headerText="Zar." width="60">
<p:selectBooleanCheckbox style="margin-left:15px;margin-top:2px;" value="#{wrItem.billing}"/>
</p:column>
</p:dataTable>