mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Incorporated new sidebar which contains the shelf and navigator (tree) components
- Changed version number to 2.0.0 (dev) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4538 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,7 +25,6 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.faces.application.FacesMessage;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.event.ActionEvent;
|
||||
import javax.transaction.UserTransaction;
|
||||
@@ -52,7 +51,6 @@ import org.alfresco.service.cmr.search.SearchParameters;
|
||||
import org.alfresco.service.cmr.search.SearchService;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.service.namespace.RegexQNamePattern;
|
||||
import org.alfresco.web.app.AlfrescoNavigationHandler;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.app.context.IContextListener;
|
||||
import org.alfresco.web.app.context.UIContextService;
|
||||
@@ -485,10 +483,25 @@ public class BrowseBean implements IContextListener
|
||||
invalidateComponents();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.web.app.context.IContextListener#areaChanged()
|
||||
*/
|
||||
public void areaChanged()
|
||||
{
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.web.app.context.IContextListener#spaceChanged()
|
||||
*/
|
||||
public void spaceChanged()
|
||||
{
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
// NodeEventListener listeners
|
||||
|
||||
|
||||
/**
|
||||
* Add a listener to those called by the BrowseBean when nodes are created
|
||||
*/
|
||||
@@ -1547,6 +1560,9 @@ public class BrowseBean implements IContextListener
|
||||
// set up the dispatch context for the navigation handler
|
||||
this.navigator.setupDispatchContext(new Node(ref));
|
||||
|
||||
// inform any listeners that the current space has changed
|
||||
UIContextService.getInstance(FacesContext.getCurrentInstance()).spaceChanged();
|
||||
|
||||
navigateBrowseScreen();
|
||||
}
|
||||
|
||||
@@ -1652,6 +1668,9 @@ public class BrowseBean implements IContextListener
|
||||
// setup the dispatch context
|
||||
navigator.setupDispatchContext(new Node(this.nodeRef));
|
||||
|
||||
// inform any listeners that the current space has changed
|
||||
UIContextService.getInstance(FacesContext.getCurrentInstance()).spaceChanged();
|
||||
|
||||
// return to browse page if required
|
||||
return (isViewCurrent() ? null : "browse");
|
||||
}
|
||||
|
Reference in New Issue
Block a user