I think all my previous related update/refresh issue is related to the two operation - fetch data from DB and refresh, are not synchonized.
eg.
Code: Select all
public void createRole() {
roleManager.createRole(getRoleName());
getNumberOfRecordsFromDB(); // for refresh local / datatable list.
}
I wonder if synchonized can resolve this issue.
eg.
Code: Select all
public synchonized void createRole() {
roleManager.createRole(getRoleName());
getNumberOfRecordsFromDB(); // for refresh local / datatable list.
}
Sam