Data not updated in DataTable getRowData
When I use a getRowData() it does not include that data that was modified on the form that is displayed in a dataTable. It only contains the information that was originally sent to the form. The jsf implementation version is 1.1_02-b08
Any ideas would be greatly appreciated.
publicfinal String updateTestSplit(){
System.err.print("In updateTestSplit : ");
selectedTestSplit = (TestSplit)testSplits.getRowData();
System.err.println(selectedTestSplit);
return"success";
}
The data for the data table is set up as :
publicfinal String getTestSplitInfo(){
if (testSplits ==null){
testSplits =new ArrayDataModel();
}
testSplits.setWrappedData(new TreeSet<TestSplit>(testSplitsArray);
}
return"success";
}
The section of the jsp is written as follows:
<h:dataTable headerClass="infotable" rowClasses="infotable" id="test_split"
value="#{myController.testSplits}" var="testSplit" width="1000">
<h:column>
<f:facet name="header">
<h:outputText value="#{messages.split_shop_percent}"/>
</f:facet>
<h:inputText size="8" required="true" value="#{testSplit.shopPercent}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{messages.split_delivery_percent}"/>
</f:facet>
<h:inputText size="8" required="true" value="#{testSplit.deliveryPercent}"/>
</h:column>
<h:column>
<h:commandButton value="#{messages.button_update}" immediate="true" action="#{myController.updateTestSplit}" />
</h:column>
</h:dataTable>

