我有一个数据表,每行都有一个输入字段。我需要知道如何在按下保存按钮时获取每行输入的成本值?
<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>