mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. Added notion of NodeEventListeners to BrowseBean.
. Fix for AWC-519 - Date pickers now show 2 year values into the future by default - for "effectivity date" searches and similar git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2386 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -20,6 +20,7 @@ import javax.faces.FactoryFinder;
|
||||
import javax.faces.component.UIViewRoot;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.context.FacesContextFactory;
|
||||
import javax.faces.el.ValueBinding;
|
||||
import javax.faces.lifecycle.Lifecycle;
|
||||
import javax.faces.lifecycle.LifecycleFactory;
|
||||
import javax.portlet.PortletContext;
|
||||
@@ -103,6 +104,20 @@ public final class FacesHelper
|
||||
return facesContext;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a JSF managed bean reference.
|
||||
*
|
||||
* @param fc FacesContext
|
||||
* @param name Name of the managed bean to return
|
||||
*
|
||||
* @return the managed bean or null if not found
|
||||
*/
|
||||
public static Object getManagedBean(FacesContext fc, String name)
|
||||
{
|
||||
ValueBinding vb = fc.getApplication().createValueBinding("#{" + name + "}");
|
||||
return vb.getValue(fc);
|
||||
}
|
||||
|
||||
/**
|
||||
* We need an inner class to be able to call FacesContext.setCurrentInstance
|
||||
* since it's a protected method
|
||||
|
Reference in New Issue
Block a user