wood burning stoves 2.0*
The moose likes JSF and the fly likes reset only one row of a dataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "reset only one row of a dataTable" Watch "reset only one row of a dataTable" New topic

reset only one row of a dataTable

Xeon Dev

Joined: Feb 07, 2012
Posts: 2
I have a dataTable component where "each line (row)" contains two inputText, one checkbox and a reset button.
I look to reset the values of inputTexts and checkbox of the line in which i click on the reset button.
For that, I used the resetbutton component from trinidad package (http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_resetButton.html).
But it resets the values in all lines which in not what I'm looking for. I note that there is a reset button in each line of the table and it should work only on that line components.

So, I would like to know if there is a solution for this purpose ?
Many thanks.
Consider Paul's rocket mass heater.
subject: reset only one row of a dataTable
Similar Threads
Problem with selecting checkboxes in subTable
How to enable a button when a checkbox is selected, without a setter nor a backing bean
Myfaces table problem
problem h:selectOneRadio
datatable contents not updating