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>

[2818 byte] By [Laguna04ga] at [2007-11-27 2:52:11]
# 1
what did you write in getTestSplits() in backing bean?
gsrya at 2007-7-12 3:26:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

The problem was resolved by removing the immediate='true' from the button commands and putting an immediate="true"in the inputText fields

<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" immediate="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" immediate="true" value="#{testSplit.deliveryPercent}"/>

</h:column>

<h:column>

<h:commandButton value="#{messages.button_update}" action="#{myController.updateTestSplit}" />

</h:column>

</h:dataTable>

That took about 4 days.

TerryWa at 2007-7-12 3:26:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...