protected TagAttributes createAttributes(Attributes attrs) { int len = attrs.getLength(); TagAttribute[] ta = new TagAttribute[len]; for (int i = 0; i < len; i++) { ta[i] = new TagAttributeImpl(this.createLocation(), attrs.getURI(i), attrs.getLocalName(i), attrs .getQName(i), attrs.getValue(i)); } return new TagAttributesImpl(ta); }
/** * Delegates to getObject with Object.class as a param * * @see #getObject(FaceletContext, Class) * @param ctx * FaceletContext to use * @return Object representation of this attribute's value */ public Object getObject(FaceletContext ctx) { return this.getObject(ctx, Object.class); }
ValueExpression valueExpr = this.getValueExpression(ctx, MethodExpression.class); methodExpression = new ValueExpressionMethodExpression(valueExpr); methodExpression = new LocationMethodExpression(getLocation(), methodExpression);
ValueExpression ve = this.getValueExpression(ctx, type); try
valueExpression = new LocationValueExpressionUEL(getLocation(), valueExpression); valueExpression = new LocationValueExpression(getLocation(), valueExpression); valueExpression = new ResourceLocationValueExpressionUEL(getLocation(), valueExpression); valueExpression = new ResourceLocationValueExpression(getLocation(), valueExpression);
ValueExpression valueExpr = this.getValueExpression(ctx, MethodExpression.class); methodExpression = new ValueExpressionMethodExpression(valueExpr); methodExpression = new LocationMethodExpression(getLocation(), methodExpression);
ValueExpression ve = this.getValueExpression(ctx, type); try
valueExpression = new LocationValueExpressionUEL(getLocation(), valueExpression); valueExpression = new LocationValueExpression(getLocation(), valueExpression);
/** * Delegates to getObject with Object.class as a param * * @see #getObject(FaceletContext, Class) * @param ctx * FaceletContext to use * @return Object representation of this attribute's value */ public Object getObject(FaceletContext ctx) { return this.getObject(ctx, Object.class); }
ValueExpression valueExpr = this.getValueExpression(ctx, Object.class); methodExpression = new ValueExpressionMethodExpression(valueExpr); Location currentLocation = getLocation(); Location ccLocation = (Location) actx.getFaceletCompositionContext(). getCompositeComponentFromStack().getAttributes().get(
protected TagAttributes createAttributes(Attributes attrs) { int len = attrs.getLength(); TagAttribute[] ta = new TagAttribute[len]; for (int i = 0; i < len; i++) { ta[i] = new TagAttributeImpl(this.createLocation(), attrs.getURI(i), attrs.getLocalName(i), attrs .getQName(i), attrs.getValue(i)); } return new TagAttributesImpl(ta); }
ValueExpression ve = this.getValueExpression(ctx, type); try
Location currentLocation = getLocation(); Location ccLocation = (Location) actx.getFaceletCompositionContext(). getCompositeComponentFromStack().getAttributes().get( valueExpression = new ResourceLocationValueExpression(getLocation(), valueExpression);
/** * Delegates to getObject with Object.class as a param * * See #getObject(FaceletContext, Class) * @param ctx * FaceletContext to use * @return Object representation of this attribute's value */ public Object getObject(FaceletContext ctx) { return this.getObject(ctx, Object.class); }
protected TagAttributes createAttributes(Attributes attrs) { int len = attrs.getLength(); TagAttribute[] ta = new TagAttribute[len]; for (int i = 0; i < len; i++) { ta[i] = new TagAttributeImpl(this.createLocation(), attrs.getURI(i), attrs.getLocalName(i), attrs .getQName(i), attrs.getValue(i)); } return new TagAttributesImpl(ta); }
/** * If literal, then return our value, otherwise delegate to getObject, passing String.class. * * @see #getObject(FaceletContext, Class) * @param ctx * FaceletContext to use * @return String value of this attribute */ public String getValue(FaceletContext ctx) { if ((this.capabilities & EL_LITERAL) != 0) { return this.value; } else { return (String) this.getObject(ctx, String.class); } }
protected TagAttributes createAttributes(Attributes attrs) { int len = attrs.getLength(); TagAttribute[] ta = new TagAttribute[len]; for (int i = 0; i < len; i++) { ta[i] = new TagAttributeImpl(this.createLocation(), attrs.getURI(i), attrs.getLocalName(i), attrs .getQName(i), attrs.getValue(i)); } return new TagAttributesImpl(ta); }
/** * If literal, then return our value, otherwise delegate to getObject, passing String.class. * * @see #getObject(FaceletContext, Class) * @param ctx * FaceletContext to use * @return String value of this attribute */ public String getValue(FaceletContext ctx) { if ((this.capabilities & EL_LITERAL) != 0) { return this.value; } else { return (String) this.getObject(ctx, String.class); } }
protected TagAttributes createAttributes(Attributes attrs) { int len = attrs.getLength(); TagAttribute[] ta = new TagAttribute[len]; for (int i = 0; i < len; i++) { ta[i] = new TagAttributeImpl(this.createLocation(), attrs.getURI(i), attrs.getLocalName(i), attrs .getQName(i), attrs.getValue(i)); } return new TagAttributesImpl(ta); }
/** * If literal, then return our value, otherwise delegate to getObject, passing String.class. * * See #getObject(FaceletContext, Class) * @param ctx * FaceletContext to use * @return String value of this attribute */ public String getValue(FaceletContext ctx) { if ((this.capabilities & EL_LITERAL) != 0) { return this.value; } else { return (String) this.getObject(ctx, String.class); } }