@Override public Object getValue(ELContext context) { FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); ResourceELUtils.saveResourceLocationForResolver(facesContext, location); try { return delegate.getValue(context); } finally { ResourceELUtils.removeResourceLocationForResolver(facesContext); } }
Location location = ResourceELUtils.getResourceLocationForResolver(facesContext); if (location != null) libraryName = ResourceELUtils.getResourceLibraryForResolver(facesContext); contractName = ResourceELUtils.getResourceContractForResolver(facesContext);
public ELCacheableTextVariable(ValueExpression ve) { super(ve.getExpressionString()); this.ve = ve; boolean compositeComponentExpression = CompositeComponentELUtils.isCompositeComponentExpression(ve.getExpressionString()); boolean resourceExpression = ResourceELUtils.isResourceExpression(ve.getExpressionString()); this.capabilities = (compositeComponentExpression ? EL_CC : 0) | ( resourceExpression ? EL_RESOURCE : 0); }
Location location = ResourceELUtils.getResourceLocationForResolver(facesContext); UIComponent cc = CompositeComponentELUtils.getCompositeComponentBasedOnLocation(facesContext, location); Resource ccResource = (Resource) cc.getAttributes().get(Resource.COMPONENT_RESOURCE_KEY);
CompositeComponentELUtils.isCompositeComponentAttrsMethodExpression(this.value) : false; resourceExpression = !literal ? ResourceELUtils.isResourceExpression(this.value) : false;
@Override public Object getValue(ELContext context) { FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); ResourceELUtils.saveResourceLocationForResolver(facesContext, location); try { return delegate.getValue(context); } finally { ResourceELUtils.removeResourceLocationForResolver(facesContext); } }
public TagAttributeImpl(Location location, String ns, String localName, String qName, String value) { boolean literal; boolean compositeComponentExpression; boolean compositeComponentAttrMethodExpression; boolean resourceExpression; this.location = location; this.namespace = ns; this.localName = localName; this.qName = qName; this.value = value; try { literal = ELText.isLiteral(this.value); } catch (ELException e) { throw new TagAttributeException(this, e); } compositeComponentExpression = !literal ? CompositeComponentELUtils.isCompositeComponentExpression(this.value) : false; compositeComponentAttrMethodExpression = compositeComponentExpression ? CompositeComponentELUtils.isCompositeComponentAttrsMethodExpression(this.value) : false; resourceExpression = !literal ? ResourceELUtils.isResourceExpression(this.value) : false; this.capabilities = (literal ? EL_LITERAL : 0) | (compositeComponentExpression ? EL_CC : 0) | (compositeComponentAttrMethodExpression ? EL_CC_ATTR_ME : 0) | ( resourceExpression ? EL_RESOURCE : 0); }
@Override public Class<?> getType(ELContext context) { FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); ResourceELUtils.saveResourceLocationForResolver(facesContext, location); try { return delegate.getType(context); } finally { ResourceELUtils.removeResourceLocationForResolver(facesContext); } }
@Override public boolean isReadOnly(ELContext context) { FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); ResourceELUtils.saveResourceLocationForResolver(facesContext, location); try { return delegate.isReadOnly(context); } finally { ResourceELUtils.removeResourceLocationForResolver(facesContext); } }
@Override public void setValue(ELContext context, Object value) { FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); ResourceELUtils.saveResourceLocationForResolver(facesContext, location); try { delegate.setValue(context, value); } finally { ResourceELUtils.removeResourceLocationForResolver(facesContext); } }
@Override public ValueReference getValueReference(ELContext context) { FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); ResourceELUtils.saveResourceLocationForResolver(facesContext, location); try { return delegate.getValueReference(context); } finally { ResourceELUtils.removeResourceLocationForResolver(facesContext); } }
@Override public Class<?> getType(ELContext context) { FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); ResourceELUtils.saveResourceLocationForResolver(facesContext, location); try { return delegate.getType(context); } finally { ResourceELUtils.removeResourceLocationForResolver(facesContext); } }
@Override public void setValue(ELContext context, Object value) { FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); ResourceELUtils.saveResourceLocationForResolver(facesContext, location); try { delegate.setValue(context, value); } finally { ResourceELUtils.removeResourceLocationForResolver(facesContext); } }
@Override public ValueReference getValueReference(ELContext context) { FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); ResourceELUtils.saveResourceLocationForResolver(facesContext, location); try { return delegate.getValueReference(context); } finally { ResourceELUtils.removeResourceLocationForResolver(facesContext); } } }
@Override public boolean isReadOnly(ELContext context) { FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); ResourceELUtils.saveResourceLocationForResolver(facesContext, location); try { return delegate.isReadOnly(context); } finally { ResourceELUtils.removeResourceLocationForResolver(facesContext); } }