Refine search
@Override public void applyMetadata(FaceletContext ctx, Object instance) { MethodExpression expr = this.attribute.getMethodExpression(ctx, this.returnType, this.paramList); try { this.method.invoke(instance, new Object[]{expr}); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (Exception e) { throw new TagAttributeException(this.attribute, e); } } }
/** * @param config */ public DefineHandler(TagConfig config) { super(config); TagAttribute attr = this.getRequiredAttribute("name"); if (!attr.isLiteral()) { throw new TagAttributeException(this.tag, attr, "Must be Literal"); } this.name = attr.getValue(); }
public void applyMetadata(FaceletContext ctx, Object instance) { if (value == null) { String str = this.attribute.getValue(); value = new Object[] { ctx.getExpressionFactory().coerceToType(str, method.getParameterTypes()[0]) }; } try { method.invoke(instance, this.value); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (Exception e) { throw new TagAttributeException(this.attribute, e); } }
public void applyMetadata(FaceletContext ctx, Object instance) { try { this.method.invoke(instance, new Object[] { this.attribute .getObject(ctx, this.type) }); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (Exception e) { throw new TagAttributeException(this.attribute, e); } } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } }
/** * @param config */ public ParameterHandler(ComponentConfig config) { super(config); assignTo = getAttribute("assignTo"); if (null != assignTo) { if (assignTo.isLiteral()) { throw new TagAttributeException(this.tag, this.assignTo, Messages.getMessage(Messages.MUST_BE_EXPRESSION_ERROR)); } } }
/** * Constructor. * * @param tag the {@link Tag}. * @param attr the {@link TagAttribute}. * @param message the message. */ public TagAttributeException(Tag tag, TagAttribute attr, String message) { super(print(tag, attr) + " " + message); }
/** * @param config */ public DefineHandler(TagConfig config) { super(config); TagAttribute attr = this.getRequiredAttribute("name"); if (!attr.isLiteral()) { throw new TagAttributeException(this.tag, attr, "Must be Literal"); } this.name = attr.getValue(); }
@Override public void applyMetadata(FaceletContext ctx, Object instance) { if (value == null) { String str = this.attribute.getValue(); value = new Object[] { ctx.getExpressionFactory().coerceToType(str, method.getParameterTypes()[0]) }; } try { method.invoke(instance, this.value); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (IllegalAccessException | IllegalArgumentException e) { throw new TagAttributeException(this.attribute, e); } }
@Override public void applyMetadata(FaceletContext ctx, Object instance) { try { this.method.invoke(instance, new Object[] { this.attribute .getObject(ctx, this.type) }); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (IllegalAccessException | IllegalArgumentException e) { throw new TagAttributeException(this.attribute, e); } } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } }
/** * @param config */ public ParameterHandler(ComponentConfig config) { super(config); assignTo = getAttribute("assignTo"); if (null != assignTo) { if (assignTo.isLiteral()) { throw new TagAttributeException(this.tag, this.assignTo, Messages.getMessage(Messages.MUST_BE_EXPRESSION_ERROR)); } } }
/** * @param message */ public TagAttributeException(Tag tag, TagAttribute attr, String message) { super(print(tag, attr) + " " + message); }
/** * @param config */ public DefineHandler(TagConfig config) { super(config); TagAttribute attr = this.getRequiredAttribute("name"); if (!attr.isLiteral()) { throw new TagAttributeException(this.tag, attr, "Must be Literal"); } this.name = attr.getValue(); }
public void applyMetadata(FaceletContext ctx, Object instance) { MethodExpression expr = _attribute.getMethodExpression(ctx, _returnType, _paramList); try { _method.invoke(instance, expr ); } catch (InvocationTargetException e) { throw new TagAttributeException(_attribute, e.getCause()); } catch (Exception e) { throw new TagAttributeException(_attribute, e); } } }
@Override public void applyMetadata(FaceletContext ctx, Object instance) { if (value == null) { String str = this.attribute.getValue(); value = new Object[] { ctx.getExpressionFactory().coerceToType(str, method.getParameterTypes()[0]) }; } try { method.invoke(instance, this.value); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (IllegalAccessException | IllegalArgumentException e) { throw new TagAttributeException(this.attribute, e); } }
@Override public void applyMetadata(FaceletContext ctx, Object instance) { try { this.method.invoke(instance, new Object[] { this.attribute .getObject(ctx, this.type) }); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (IllegalAccessException | IllegalArgumentException e) { throw new TagAttributeException(this.attribute, e); } } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } }
/** * @param config */ public ParameterHandler(ComponentConfig config) { super(config); assignTo = getAttribute("assignTo"); if (null != assignTo) { if (assignTo.isLiteral()) { throw new TagAttributeException(this.tag, this.assignTo, Messages.getMessage(Messages.MUST_BE_EXPRESSION_ERROR)); } } }
/** * @param message * @param cause */ public TagAttributeException(Tag tag, TagAttribute attr, String message, Throwable cause) { super(print(tag, attr) + " " + message, cause); }