Dynamically Edit A Column of an Htmldatatable Row
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tokunbo_Oke
Posted On:   Monday, June 28, 2010 02:57 PM

When a user clicks an option box of an Htmldatatable row, 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. vi   More>>

When a user clicks an option box of an Htmldatatable row, 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.

   <<Less
About | Sitemap | Contact