Take a look at JDBC_RowSetDatasource.xsp inside XPagesJDBC.nsf. There you'll find this method used:
jdbcData1.newRow(getComponent('viewPanel1').getFirst())
and then also:
jdbcData1.acceptChanges()