. Fix for AWC-472

- External access URL bug fix for browsing to spaces when the client is already open (for CIFS usage)
. Refactoring of ServletHelper methods into a BaseServlet class

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2302 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-02-06 14:42:39 +00:00
parent 0b9ddda3ca
commit ce283a2f01
9 changed files with 98 additions and 44 deletions

View File

@@ -256,6 +256,14 @@ public class BrowseBean implements IContextListener
this.contentRichList.setInitialSortDescending(
this.viewsConfig.hasDescendingSort(PAGE_NAME_BROWSE));
}
// special case to handle an External Access URL
// these URLs restart the JSF lifecycle but an old UIRichList is restored from
// the component tree - which needs clearing "late" in the lifecycle process
if (externalForceRefresh)
{
this.contentRichList.setValue(null);
externalForceRefresh = false;
}
}
/**
@@ -280,6 +288,10 @@ public class BrowseBean implements IContextListener
this.spacesRichList.setInitialSortDescending(
this.viewsConfig.hasDescendingSort(PAGE_NAME_BROWSE));
}
if (externalForceRefresh)
{
this.spacesRichList.setValue(null);
}
}
/**
@@ -1238,6 +1250,16 @@ public class BrowseBean implements IContextListener
return outcome;
}
/**
* Support for refresh of lists via special case for an External Access URL.
* these URLs restart the JSF lifecycle but an old UIRichList is restored from
* the component tree - which needs clearing "late" in the lifecycle process.
*/
public void externalAccessRefresh()
{
this.externalForceRefresh = true;
}
// ------------------------------------------------------------------------------
// Private helpers
@@ -1501,4 +1523,6 @@ public class BrowseBean implements IContextListener
/** True if current space has a dashboard (template) view available */
private boolean dashboardView;
private boolean externalForceRefresh = false;
}