Forums Register Login

Dynamically Edit A Column of an Htmldatatable Row

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Tokunbo, please KeepItDown even for what you write on the subject line. You can edit your subject line by clicking the button.
I'm not sure if I approve of this interruption. But this tiny ad checks out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2044 times.
Similar Threads
querystring values and GET method
JSF: Need advice on acheiving specific funcationality
Radio button validation problem
passing hidden field value to backing bean
Using JTables with Radio Buttons
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:24:22.