• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Dynamically Edit A Column of an Htmldatatable Row

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 7402
1423
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic