How to implement a table cell in Grails that will have a button and pressing it will change data in a cell of the same row? Lets say table has only id, assignment, accepted (yes, no) fields. The value of accepted is by default no and when you click on Accept button it changes to yes.
Should I use Grails UI Data Table or jQuery Grid?
You can use a
submitToRemotebutton and update the current table row using theupdatetag. E.g: in yourindex.gsp:Where your _tableRow.gsp template is something like:
Note the attribute value of
updateis the same as of the<tr>fromindex.gsp.Your controller has an action
updateAction:There are obviously other possibilities, but this might be an option for you.