@Override public void applyMetadata(FaceletContext ctx, Object instance) { ((ActionSource2) instance).setActionExpression(this.attr .getMethodExpression(ctx, Object.class, ActionSourceRule.ACTION_SIG)); }
@Override public void applyMetadata(FaceletContext ctx, Object instance) { ((ActionSource2) instance).setActionExpression(this.attr .getMethodExpression(ctx, Object.class, ActionSourceRule.ACTION_SIG)); }
public void applyMetadata(FaceletContext ctx, Object instance) { MethodExpression expr = _attr.getMethodExpression(ctx, null, ActionSourceRule.ACTION_SIG); ((ActionSource2) instance).setActionExpression(expr); } }
@Override public void applyMetadata(FaceletContext ctx, Object instance) { ((ActionSource2) instance).setActionExpression(this.attr .getMethodExpression(ctx, Object.class, ActionSourceRule.ACTION_SIG)); }
public void applyMetadata(FaceletContext ctx, Object instance) { MethodExpression expr = _attr.getMethodExpression(ctx, null, ActionSourceRule.ACTION_SIG); ((ActionSource2) instance).setActionExpression(expr); } }
public void applyMetadata(FaceletContext ctx, Object instance) { ((ActionSource2) instance).setActionExpression(this.attr .getMethodExpression(ctx, Object.class, ActionSourceRule.ACTION_SIG)); }
public void applyMetadata(FaceletContext ctx, Object instance) { ((ActionSource2) instance).setActionExpression(this.attr .getMethodExpression(ctx, String.class, ActionSourceRule.ACTION_SIG)); }
public void applyMetadata(FaceletContext ctx, Object instance) { MethodExpression expr = _attr.getMethodExpression(ctx, null, ActionSourceRule.ACTION_SIG); ((ActionSource2) instance).setActionExpression(expr); } }
/** * @since 1.2 */ public static void setActionProperty(FacesContext context, UIComponent component, MethodExpression action) { if (action != null) { if (!(component instanceof ActionSource2)) { throw new IllegalArgumentException("Component " + component.getClientId(context) + " is no ActionSource2"); } ((ActionSource2)component).setActionExpression(action); } }
/** * @since 1.2 */ public static void setActionProperty(FacesContext context, UIComponent component, MethodExpression action) { if (action != null) { if (!(component instanceof ActionSource2)) { throw new IllegalArgumentException("Component " + component.getClientId(context) + " is no ActionSource2"); } ((ActionSource2)component).setActionExpression(action); } }
/** * @since 1.2 */ public static void setActionProperty(FacesContext context, UIComponent component, MethodExpression action) { if (action != null) { if (!(component instanceof ActionSource2)) { throw new IllegalArgumentException("Component " + component.getClientId(context) + " is no ActionSource2"); } ((ActionSource2) component).setActionExpression(action); } }
/** * @since 1.2 */ public static void setActionProperty(FacesContext context, UIComponent component, MethodExpression action) { if (action != null) { if (!(component instanceof ActionSource2)) { throw new IllegalArgumentException("Component " + component.getClientId(context) + " is no ActionSource2"); } ((ActionSource2)component).setActionExpression(action); } }
/** * @since 1.2 */ public static void setActionProperty(FacesContext context, UIComponent component, MethodExpression action) { if (action != null) { if (!(component instanceof ActionSource2)) { throw new IllegalArgumentException("Component " + component.getClientId(context) + " is no ActionSource2"); } ((ActionSource2) component).setActionExpression(action); } }
protected void setActionProperty(UIComponent component, MethodExpression action) { if (action != null) { if (component instanceof ActionSource2) { ActionSource2 actionSource2 = (ActionSource2) component; actionSource2.setActionExpression(action); } else { throw new IllegalArgumentException(Messages.getMessage(Messages.NO_ACTION_SOURCE2_ERROR, component.getClientId(getFacesContext()))); } } }
private void applyActionMethodExpressionTarget(FacesContext context, FaceletCompositionContext mctx, ELContext elContext, UIComponent topLevelComponent, UIComponent innerComponent, String attributeName, String targetAttributeName, String attributeExpressionString, ValueExpression attributeNameValueExpression, boolean ccAttrMeRedirection) { // target is ActionSource2 MethodExpression methodExpression = reWrapMethodExpression(context.getApplication().getExpressionFactory(). createMethodExpression(elContext, attributeExpressionString, null, EMPTY_CLASS_ARRAY), attributeNameValueExpression); // If it is a redirection, a wrapper is used to // locate the right instance and call it properly. if (ccAttrMeRedirection) { ((ActionSource2) innerComponent).setActionExpression( new ValueExpressionMethodExpression(attributeNameValueExpression)); } else { ((ActionSource2) innerComponent).setActionExpression(methodExpression); } }
@Override public void retarget(FacesContext ctx, CompCompInterfaceMethodMetadata metadata, Object sourceValue, UIComponent target) { String expr = (sourceValue instanceof ValueExpression) ? ((ValueExpression) sourceValue).getExpressionString() : sourceValue.toString(); ExpressionFactory f = ctx.getApplication().getExpressionFactory(); MethodExpression me = f.createMethodExpression(ctx.getELContext(), expr, Object.class, NO_ARGS); ((ActionSource2) target) .setActionExpression( new ContextualCompositeMethodExpression(((sourceValue instanceof ValueExpression) ? (ValueExpression) sourceValue : null), me)); }
@Override public void retarget(FacesContext ctx, CompCompInterfaceMethodMetadata metadata, Object sourceValue, UIComponent target) { String expr = (sourceValue instanceof ValueExpression) ? ((ValueExpression) sourceValue).getExpressionString() : sourceValue.toString(); ExpressionFactory f = ctx.getApplication().getExpressionFactory(); MethodExpression me = f.createMethodExpression(ctx.getELContext(), expr, Object.class, NO_ARGS); ((ActionSource2) target) .setActionExpression( new ContextualCompositeMethodExpression(((sourceValue instanceof ValueExpression) ? (ValueExpression) sourceValue : null), me)); }
public void retarget(FacesContext ctx, CompCompInterfaceMethodMetadata metadata, Object sourceValue, UIComponent target) { String expr = (sourceValue instanceof ValueExpression) ? ((ValueExpression) sourceValue).getExpressionString() : sourceValue.toString(); ExpressionFactory f = ctx.getApplication().getExpressionFactory(); MethodExpression me = f.createMethodExpression(ctx.getELContext(), expr, Object.class, NO_ARGS); ((ActionSource2) target) .setActionExpression( new ContextualCompositeMethodExpression(((sourceValue instanceof ValueExpression) ? (ValueExpression) sourceValue : null), me)); }
@Override public void retarget(FacesContext ctx, CompCompInterfaceMethodMetadata metadata, Object sourceValue, UIComponent target) { String expr = (sourceValue instanceof ValueExpression) ? ((ValueExpression) sourceValue).getExpressionString() : sourceValue.toString(); ExpressionFactory f = ctx.getApplication().getExpressionFactory(); MethodExpression me = f.createMethodExpression(ctx.getELContext(), expr, Object.class, NO_ARGS); ((ActionSource2) target) .setActionExpression( new ContextualCompositeMethodExpression(((sourceValue instanceof ValueExpression) ? (ValueExpression) sourceValue : null), me)); }
final MethodExpression action = new TagMethodExpression(value, expressionFactory.createMethodExpression( faceletContext, expressionString, String.class, ComponentUtils.ACTION_ARGS)); ((ActionSource2) parent).setActionExpression(action); final MethodExpression action = getMethodExpression(faceletContext, String.class, ComponentUtils.ACTION_ARGS); if (action != null) { ((ActionSource2) parent).setActionExpression(action);