Merged V2.2 to HEAD

8357: Fixed code that would break in UI cluster.
  8402: Fix for AWC-1915

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8512 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2008-03-11 14:55:29 +00:00
parent abdf538b63
commit 3e8c994816
7 changed files with 30 additions and 8 deletions

View File

@@ -171,7 +171,11 @@ public class AddUsersDialog extends BaseDialogBean
this.usersDataModel = new ListDataModel();
}
// only set the wrapped data once otherwise the rowindex is reset
if (this.usersDataModel.getWrappedData() == null)
{
this.usersDataModel.setWrappedData(this.usersForGroup);
}
return this.usersDataModel;
}

View File

@@ -153,8 +153,12 @@ public class AdvancedSearchDialog extends BaseDialogBean
* @return JSF DataModel representing the current categories to search against
*/
public DataModel getCategoriesDataModel()
{
// only set the wrapped data once otherwise the rowindex is reset
if (properties.getCategoriesDataModel().getWrappedData() == null)
{
properties.getCategoriesDataModel().setWrappedData(properties.getCategories());
}
return properties.getCategoriesDataModel();
}

View File

@@ -258,7 +258,10 @@ public abstract class UserMembersBean extends BaseDialogBean implements IContext
this.personRolesDataModel = new ListDataModel();
}
if (this.personRolesDataModel.getWrappedData() == null)
{
this.personRolesDataModel.setWrappedData(this.personRoles);
}
return this.personRolesDataModel;
}

View File

@@ -733,7 +733,11 @@ public class CreateFormWizard extends BaseWizardBean
this.renderingEngineTemplatesDataModel = new ListDataModel();
}
// only set the wrapped data once otherwise the rowindex is reset
if (this.renderingEngineTemplatesDataModel.getWrappedData() == null)
{
this.renderingEngineTemplatesDataModel.setWrappedData(this.renderingEngineTemplates);
}
return this.renderingEngineTemplatesDataModel;
}

View File

@@ -137,7 +137,11 @@ public class FormTemplatesDialog extends BaseDialogBean
this.templatesDataModel = new ListDataModel();
}
// only set the wrapped data once otherwise the rowindex is reset
if (this.templatesDataModel.getWrappedData() == null)
{
this.templatesDataModel.setWrappedData(this.templates);
}
return this.templatesDataModel;
}

View File

@@ -475,7 +475,6 @@ public class SubmitDialog extends BaseDialogBean
final String sandboxPath = AVMUtil.buildSandboxRootPath(this.avmBrowseBean.getSandbox());
final String stagingPath = AVMUtil.buildSandboxRootPath(this.avmBrowseBean.getStagingStore());
final List<AVMDifference> diffs = new ArrayList<AVMDifference>(items.size());
final AVMSyncService syncService = this.getAvmSyncService();
final String submitLabel = this.label;
final String submitComment = this.comment;
@@ -511,7 +510,7 @@ public class SubmitDialog extends BaseDialogBean
{
public Object doWork() throws Exception
{
syncService.update(diffs, null, true, true, false, false, submitLabel, submitComment);
getAvmSyncService().update(diffs, null, true, true, false, false, submitLabel, submitComment);
AVMDAOs.Instance().fAVMNodeDAO.flush();
getAvmSyncService().flatten(sandboxPath, stagingPath);
return null;

View File

@@ -314,7 +314,11 @@ public abstract class BaseInviteUsersWizard extends BaseWizardBean
this.userRolesDataModel = new ListDataModel();
}
// only set the wrapped data once otherwise the rowindex is reset
if (this.userRolesDataModel.getWrappedData() == null)
{
this.userRolesDataModel.setWrappedData(this.userGroupRoles);
}
return this.userRolesDataModel;
}