Yes I am, via the <binding> property of the dataTable in the jsp.
I am aware that I can access the actual row, put some kind of action in my backing bean that gets called everytime something happens to the row, etc.
However, that means a roundtrip to the server each and every time right? I was hoping to avoid that.
So I was thinking the user will make changes in the dataTable in the jsp, then they will hit the "Save" button which then will call a method that will actually do the saving. The save method will iterate through the dataTable List and issue a hibernate save each time it iterates.
Is that a typical thing to do when trying to update rows like this?
thinkpad wrote:
You are using an HTMLDataTable on the managed bean side or?
You can access to the actual row with this command:
TbMyTable actTb = (TbMyTable) this.getDataTable().getRowData();
If you get an error message, the datatable has even an method for the rowId. With that id, you can get the item from your TbMyTable List.
Hope this helps? Pls don't forget to rate...