posted 14 years ago
When a user clicks an option box, I want to set the value of a field in the current row to "OR". I know how to get the current row from the the dataTable.
NOte:
The backing bean in which I set the new value of the field is in the request scope.
Problem
=======
After setting the value of the relevant row to "OR" (via a backing bean) "OR" is not reflected in the data table i.e in the browser, the value of all fields in the data table remain unchanged.
Please tell me what I need to do in order to get my changes reflected in the UI.
Do I need to add the edited row via the datamodel of the data table i.e. via setWappedData method? It is not a new row, just an edited one.
The code in Which I am setting "OR"
===================================
Object selectedRow = this.getCustomerUiTable().getRowData();
if (selectedRow instanceof CustomerBean) {
CustomerBean selectedCustomerBean = (CustomerBean) selectedRow;
//If this attribute has been selected...
if (selectedCustomerBean.isAttributeSelected()) {
selectedCustomerBean.setBooleanCond("OR");
}
}
Thank you.