Search code examples
gwtuibinder

How to get list of modified fields when using GWT Editor?


Need to get list of modified fields. List of strings or widgets (like combos, textfields, etc) are acceptable. Any ideas?


Solution

  • Using EditorVisitors, you can capture the original values just after your call to edit() and then visit the editors at any later time to compute the changed fields.

    Actually, this is exactly what the editor framework does internally to compute isDirty(), so you can possibly copy/paste code from GWT directly.