I have a datatable with an input field on each row. I need to know how to get the cost values entered on each row when a save button is pressed?
<p:dataTable value="#{eventCreateEditCostModel.costEntities}" var="eventCost"
rowKey="#{eventCost.eventCostId}"
sortMode="multiple"
resizableColumns="true"
widgetVar="eventCostTable"
rows="10">
<f:facet name="header">
Event Costs Listing
</f:facet>
<p:column headerText="ID">
<h:outputText value="#{eventCost.eventCostId}" />
</p:column>
<p:column headerText="Name">
<h:outputText value="#{eventCost.name}" />
</p:column>
<p:column headerText="Cost">
<pe:inputNumber value="#{eventCost.cost}" decimalPlaces="2" label="Cost"
minValue="0" maxValue="999999999" thousandSeparator="true" title="Cost" symbol="$"/>
</p:column>
</p:dataTable>