Merged V2.0 to HEAD

5297: PostgreSQL upgrade support
   5347: (From 1.4) EHCache configuration fixes and sample
   5380, 5381: AWC-1143
   5398: AWC-966


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5479 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-04-11 19:05:40 +00:00
parent 0dccbdcd20
commit 0a79a3db57
3 changed files with 17 additions and 5 deletions

View File

@@ -649,6 +649,19 @@ public class UIActions extends SelfRenderingComponent
this.verticalSpacing = verticalSpacing;
}
// ------------------------------------------------------------------------------
// Helper methods
/**
* Resets the component to force a re-initialisation.
*/
public void reset()
{
// clear any child components and reset the list of groups
this.getChildren().clear();
this.groups.clear();
}
/**
* @return a unique ID for a JSF component
*/
@@ -657,7 +670,6 @@ public class UIActions extends SelfRenderingComponent
return "_id_" + Short.toString(++id);
}
// ------------------------------------------------------------------------------
// Private data

View File

@@ -152,7 +152,7 @@ public class UISidebar extends SelfRenderingComponent
// update the child UIActions component with the correct
// action group id and clear it's current children
UIActions actions = (UIActions)this.getChildren().get(1);
actions.getChildren().clear();
actions.reset();
setupActionGroupId(context, actions);
}
}