How instant updates happen…

How do the tabs at the top get updated right away… Is there a better way?
If this puzzle is solvable – there is one less frame… I think I have an idea.


legacy/tool-support/src/java/org/sakaiproject/cheftool/VelocityPortletPaneledAction.java
protected void schedulePeerFrameRefresh(String id)
{
ToolSession session = SessionManager.getCurrentToolSession();
// add to (or create) our set of ids to refresh
Set soFar = (Set) session.getAttribute(ATTR_FRAME_REFRESH);
if (soFar == null)
{
soFar = new HashSet();
session.setAttribute(ATTR_FRAME_REFRESH, soFar);
}
soFar.add(id);
}
Set ids = (Set) session.getAttribute(ATTR_FRAME_REFRESH);
if (ids != null)
{
setVmReference(“frameRefresh”, ids, request);
session.removeAttribute(ATTR_FRAME_REFRESH);
}
legacy/tools/src/webapp/VM_chef_library.vm
#if ($frameRefresh)
#foreach ($id in $frameRefresh)