• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically Edit A Column of an Htmldatatable Row  RSS feed

 
Tokunbo Oke
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Devaka Cooray
Marshal
Posts: 5325
575
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tokunbo, please KeepItDown even for what you write on the subject line. You can edit your subject line by clicking the button.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!