Java Code Examples for org.springframework.web.jsf.FacesContextUtils

The following examples show how to use org.springframework.web.jsf.FacesContextUtils. These examples are extracted from open source projects. 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
/**
 * 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 Project: spring-analysis-note   Source File: SpringBeanFacesELResolver.java    License: 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
/**
 * 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 Project: java-technology-stack   Source File: SpringBeanFacesELResolver.java    License: 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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);
}