I would suggest this approach:
- put panel inside repater
- put datasource inside repeater (chceck source). initialize it by UNID of document shown by repeater
- put edit/save buttons inside repeat
- in Save button use datasource.save() - avoid simple actions (they act on all or first DS)
- Edit button is a bit tricky - you can't use something like datasource.setEditable() - but there is workaround (http://www.juliusbuss.de/web/youatnotes/blog-jb.nsf/dx/xpages-how-to-set-edit-mode-via-javascript.htm?opendocument&comments comment #5)
- set both buttons to do partial refresh only of the first mentioned panel inside repeater