@Override public Object resolveVariable(FacesContext facesContext, String name) throws EvaluationException { return delegate.resolveVariable(facesContext, name); } }
public Object resolveVariable(FacesContext facesContext, String name) throws EvaluationException { return delegate.resolveVariable(facesContext, name); } }
@Override public Object resolveVariable(FacesContext facesContext, String name) throws EvaluationException { return delegate.resolveVariable(facesContext, name); } }
private static Map getScopeMap(FacesContext context, VariableResolver resolver, String key, String[] scopes) { for (int i = 0; i < scopes.length; i++) { Map scopeMap = (Map) resolver.resolveVariable(context, scopes[i]); if (scopeMap.get(key) != null) { return scopeMap; } } return null; } }
/** * Returns the requested object configured in the faces-config or from library. */ public static Object resolveVariable(final FacesContext context, final String variable) { final Application application = context.getApplication(); final VariableResolver variableResolver = application.getVariableResolver(); return variableResolver.resolveVariable(context, variable); }
public static Object resolveVariable(FacesContext context, String name) { if (context == null) { context = FacesContext.getCurrentInstance(); } return context.getApplication().getVariableResolver().resolveVariable( context, name); }
/** * See javadoc for VariableResolver. * * @see javax.faces.el.VariableResolver#resolveVariable(javax.faces.context.FacesContext, java.lang.String) */ public Object resolveVariable(FacesContext facesContext, String name) throws EvaluationException { if (isSeamPresent && SEAM_CONVERSATION_EL_IDENTIFIER.equals(name)) { return ConversationScope.getConversationCache(); } return delegate.resolveVariable(facesContext, name); }
public Object resolveVariable(FacesContext facesContext, String name) throws EvaluationException { if(SECURITY_CONTEXT.equals(name)) { return getSecurityContextImpl(facesContext); } else { return originalResolver.resolveVariable(facesContext, name); } }
public Object resolveVariable(FacesContext context, String name) throws EvaluationException { if (FLOW_EXECUTION_VARIABLE_NAME.equals(name)) { return FlowExecutionHolderUtils.getRequiredCurrentFlowExecution(context); } else { return resolverDelegate.resolveVariable(context, name); } } }
public Object resolveVariable(FacesContext context, String name) throws EvaluationException { if (FLOW_SCOPE_VARIABLE.equals(name)) { return FlowExecutionHolderUtils.getRequiredCurrentFlowExecution(context); } else { return resolverDelegate.resolveVariable(context, name); } } }
/** * Override this method in order to customise the bean instance. */ protected static Converter createConverter(String beanName) { FacesContext facesContext = FacesContext.getCurrentInstance(); Application application = facesContext.getApplication(); Object converter = application.getVariableResolver().resolveVariable(facesContext, beanName); return (Converter) converter; } }
/** * Override this method in order to customise the bean instance. */ protected static Converter createConverter(String beanName) throws JspException { FacesContext facesContext = FacesContext.getCurrentInstance(); Application application = facesContext.getApplication(); Object converter = application.getVariableResolver().resolveVariable(facesContext, beanName); return (Converter) converter; } }
/** * <p>Return the named bean from request, session, or application scope. * If this is a managed bean, it might also get created as a side effect. * Return <code>null</code> if no such bean can be found or created.</p> * * @param name Name of the desired bean */ protected Object getBean(String name) { FacesContext context = getFacesContext(); return context.getApplication().getVariableResolver(). resolveVariable(context, name); }
private Object getPage(final FacesContext context) { final VariableResolver variableResolver = context.getApplication() .getVariableResolver(); return variableResolver.resolveVariable(context, getPageName()); }
public Object getPage(final FacesContext context) { final VariableResolver variableResolver = context.getApplication() .getVariableResolver(); return variableResolver.resolveVariable(context, getPageName()); }
private Object getPage(final FacesContext context) { final VariableResolver variableResolver = context.getApplication() .getVariableResolver(); return variableResolver.resolveVariable(context, getPageName()); }
public Object resolveVariable(FacesContext facesContext, String variableName) throws EvaluationException { if (VIEW_CONTROLLER_VARIABLE.equals(variableName)) { ViewControllerManager manager = ViewControllerManagerFactory.getInstance(); return manager.getViewController(facesContext.getViewRoot().getViewId()); } return original.resolveVariable(facesContext, variableName); } }
public Object getInstance() throws InstantiationException { FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext == null) { log.error("Object " + getManagedBeanName() + " cannot be created since the faces context is null"); //$NON-NLS-1$ //$NON-NLS-2$ return null; } Application application = facesContext.getApplication(); VariableResolver resolver = application.getVariableResolver(); Object resolvedObject = resolver.resolveVariable(facesContext, getManagedBeanName()); return resolvedObject; }
public Object resolveVariable(FacesContext facesContext, String name) throws EvaluationException { Object result = elContext.getELResolver().getValue(elContext, null, name); if (elContext.isPropertyResolved()) { return result; } else { return nextResolver.resolveVariable(facesContext, name); } } }
public Object resolveVariable(FacesContext facesContext, String s) throws EvaluationException { Object variable = _delegate.resolveVariable(facesContext, s); if (variable != null && WeavingContext.getInstance().isDynamic(variable.getClass())) variable = WeavingContext.getInstance().reload(variable, ScriptingConst.ARTIFACT_TYPE_MANAGEDBEAN); return variable; }