mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. 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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user