org.springframework.web.jsf.FacesContextUtils Java Examples

The following examples show how to use org.springframework.web.jsf.FacesContextUtils. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebApplicationContextFacesELResolver.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Retrieve the {@link WebApplicationContext} reference to expose.
 * <p>The default implementation delegates to {@link FacesContextUtils},
 * returning {@code null} if no {@code WebApplicationContext} found.
 * @param elContext the current JSF ELContext
 * @return the Spring web application context
 * @see org.springframework.web.jsf.FacesContextUtils#getWebApplicationContext
 */
@Nullable
protected WebApplicationContext getWebApplicationContext(ELContext elContext) {
	FacesContext facesContext = FacesContext.getCurrentInstance();
	return FacesContextUtils.getRequiredWebApplicationContext(facesContext);
}
 
Example #2
Source File: SpringBeanFacesELResolver.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Retrieve the web application context to delegate bean name resolution to.
 * <p>The default implementation delegates to FacesContextUtils.
 * @param elContext the current JSF ELContext
 * @return the Spring web application context (never {@code null})
 * @see org.springframework.web.jsf.FacesContextUtils#getRequiredWebApplicationContext
 */
protected WebApplicationContext getWebApplicationContext(ELContext elContext) {
	FacesContext facesContext = FacesContext.getCurrentInstance();
	return FacesContextUtils.getRequiredWebApplicationContext(facesContext);
}
 
Example #3
Source File: WebApplicationContextFacesELResolver.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Retrieve the {@link WebApplicationContext} reference to expose.
 * <p>The default implementation delegates to {@link FacesContextUtils},
 * returning {@code null} if no {@code WebApplicationContext} found.
 * @param elContext the current JSF ELContext
 * @return the Spring web application context
 * @see org.springframework.web.jsf.FacesContextUtils#getWebApplicationContext
 */
@Nullable
protected WebApplicationContext getWebApplicationContext(ELContext elContext) {
	FacesContext facesContext = FacesContext.getCurrentInstance();
	return FacesContextUtils.getRequiredWebApplicationContext(facesContext);
}
 
Example #4
Source File: SpringBeanFacesELResolver.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Retrieve the web application context to delegate bean name resolution to.
 * <p>The default implementation delegates to FacesContextUtils.
 * @param elContext the current JSF ELContext
 * @return the Spring web application context (never {@code null})
 * @see org.springframework.web.jsf.FacesContextUtils#getRequiredWebApplicationContext
 */
protected WebApplicationContext getWebApplicationContext(ELContext elContext) {
	FacesContext facesContext = FacesContext.getCurrentInstance();
	return FacesContextUtils.getRequiredWebApplicationContext(facesContext);
}
 
Example #5
Source File: WebApplicationContextFacesELResolver.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Retrieve the WebApplicationContext reference to expose.
 * <p>The default implementation delegates to FacesContextUtils,
 * returning {@code null} if no WebApplicationContext found.
 * @param elContext the current JSF ELContext
 * @return the Spring web application context
 * @see org.springframework.web.jsf.FacesContextUtils#getWebApplicationContext
 */
protected WebApplicationContext getWebApplicationContext(ELContext elContext) {
	FacesContext facesContext = FacesContext.getCurrentInstance();
	return FacesContextUtils.getRequiredWebApplicationContext(facesContext);
}
 
Example #6
Source File: SpringBeanFacesELResolver.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Retrieve the web application context to delegate bean name resolution to.
 * <p>The default implementation delegates to FacesContextUtils.
 * @param elContext the current JSF ELContext
 * @return the Spring web application context (never {@code null})
 * @see org.springframework.web.jsf.FacesContextUtils#getRequiredWebApplicationContext
 */
protected WebApplicationContext getWebApplicationContext(ELContext elContext) {
	FacesContext facesContext = FacesContext.getCurrentInstance();
	return FacesContextUtils.getRequiredWebApplicationContext(facesContext);
}
 
Example #7
Source File: WebApplicationContextFacesELResolver.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Retrieve the WebApplicationContext reference to expose.
 * <p>The default implementation delegates to FacesContextUtils,
 * returning {@code null} if no WebApplicationContext found.
 * @param elContext the current JSF ELContext
 * @return the Spring web application context
 * @see org.springframework.web.jsf.FacesContextUtils#getWebApplicationContext
 */
protected WebApplicationContext getWebApplicationContext(ELContext elContext) {
	FacesContext facesContext = FacesContext.getCurrentInstance();
	return FacesContextUtils.getRequiredWebApplicationContext(facesContext);
}
 
Example #8
Source File: SpringBeanFacesELResolver.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Retrieve the web application context to delegate bean name resolution to.
 * <p>The default implementation delegates to FacesContextUtils.
 * @param elContext the current JSF ELContext
 * @return the Spring web application context (never {@code null})
 * @see org.springframework.web.jsf.FacesContextUtils#getRequiredWebApplicationContext
 */
protected WebApplicationContext getWebApplicationContext(ELContext elContext) {
	FacesContext facesContext = FacesContext.getCurrentInstance();
	return FacesContextUtils.getRequiredWebApplicationContext(facesContext);
}