mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Category browsing shelf component and view - contribution from Jean-Luc Viselé (Atol Conseils et Développements)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6871 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -698,8 +698,16 @@ public class BrowseBean implements IContextListener
|
||||
|
||||
// setup dispatch context for custom views
|
||||
this.navigator.setupDispatchContext(this.navigator.getCurrentNode());
|
||||
|
||||
navigateBrowseScreen();
|
||||
|
||||
// browse to appropriate view
|
||||
FacesContext fc = FacesContext.getCurrentInstance();
|
||||
String outcome = null;
|
||||
String viewId = fc.getViewRoot().getViewId();
|
||||
if (viewId.equals(BROWSE_VIEW_ID) == false && viewId.equals(CATEGORY_VIEW_ID) == false)
|
||||
{
|
||||
outcome = "browse";
|
||||
}
|
||||
fc.getApplication().getNavigationHandler().handleNavigation(fc, null, outcome);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1964,7 +1972,8 @@ public class BrowseBean implements IContextListener
|
||||
// Private data
|
||||
|
||||
/** Browse screen view ID */
|
||||
public static final String BROWSE_VIEW_ID = "/jsp/browse/browse.jsp";
|
||||
public static final String BROWSE_VIEW_ID = "/jsp/browse/browse.jsp";
|
||||
public static final String CATEGORY_VIEW_ID = "/jsp/browse/category-browse.jsp";
|
||||
|
||||
/** Small icon default name */
|
||||
public static final String SPACE_SMALL_DEFAULT = "space_small";
|
||||
|
Reference in New Issue
Block a user