if ((onError != null) && !"".equals(onError.trim())) if (elUtils.isEl(onError)) Object result = elUtils.invokeMethod(context, onError); if (result == null)
String el = param.getExpression().getELExpression(); if (elUtils.getExpectedType(context, el).isArray()) Object coerced = elUtils.coerceToType(context, el, values); for (String id : param.getValidatorIdList()) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); if (value != null) Object coerced = elUtils.coerceToType(context, el, value); for (String id : param.getValidatorIdList()) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); + elUtils.getExpectedType(context, currentParameter.getExpression().getELExpression()) + "]"); handleValidationFailure(context, message, currentParameter.getOnError());
if (elUtils.getExpectedType(context, el).isArray()) elUtils.setValue(context, el, values); Class<?> expectedType = elUtils.getExpectedType(context, el); Converter converter = context.getApplication().createConverter(expectedType); elUtils.setValue(context, el, convertedValue); elUtils.setValue(context, el, valueAsString);
Object coerced = elUtils.coerceToType(context, param.getExpression().getELExpression(), value); for (PathValidator pv : validators) elUtils.invokeMethod(context, pv.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced });
public Object invokeMethod(final FacesContext context, final String expression) throws ELException { return invokeMethod(context, expression, new Class[] {}, null); }
value = elUtils.getValue(context, expression);
param.setName(p.getName()); ValueExpression ve = elUtils.createValueExpression(context, p.getExpression().getELExpression()); param.setValueExpression("value", ve); param.setImmediate(true); param.setName(q.getName()); ValueExpression ve = elUtils.createValueExpression(context, q.getExpression().getELExpression()); param.setValueExpression("value", ve); param.setImmediate(true);
String el = param.getExpression().getELExpression(); if (elUtils.getExpectedType(context, el).isArray()) Object coerced = elUtils.coerceToType(context, el, values); for (String id : param.getValidatorIdList()) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); if (value != null) Object coerced = elUtils.coerceToType(context, el, value); for (String id : param.getValidatorIdList()) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); + elUtils.getExpectedType(context, currentParameter.getExpression().getELExpression()) + "]"); handleValidationFailure(context, message, currentParameter.getOnError());
if (elUtils.getExpectedType(context, el).isArray()) elUtils.setValue(context, el, values); Class<?> expectedType = elUtils.getExpectedType(context, el); Converter converter = context.getApplication().createConverter(expectedType); elUtils.setValue(context, el, convertedValue); elUtils.setValue(context, el, valueAsString);
Object coerced = elUtils.coerceToType(context, param.getExpression().getELExpression(), value); for (PathValidator pv : validators) elUtils.invokeMethod(context, pv.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced });
public Object invokeMethod(final FacesContext context, final String expression) throws ELException { return invokeMethod(context, expression, new Class[] {}, null); }
value = elUtils.getValue(context, expression);
String el = param.getExpression().getELExpression(); if (elUtils.getExpectedType(context, el).isArray()) Object coerced = elUtils.coerceToType(context, el, values); for (String id : param.getValidatorIdList()) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); if (value != null) Object coerced = elUtils.coerceToType(context, el, value); for (String id : param.getValidatorIdList()) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); + elUtils.getExpectedType(context, currentParameter.getExpression().getELExpression()) + "]"); handleValidationFailure(context, message, currentParameter.getOnError());
if (elUtils.getExpectedType(context, el).isArray()) elUtils.setValue(context, el, values); Class<?> expectedType = elUtils.getExpectedType(context, el); Converter converter = context.getApplication().createConverter(expectedType); elUtils.setValue(context, el, convertedValue); elUtils.setValue(context, el, valueAsString);
if ((onError != null) && !"".equals(onError.trim())) if (elUtils.isEl(onError)) Object result = elUtils.invokeMethod(context, onError); if (result == null)
Object coerced = elUtils.coerceToType(context, param.getExpression().getELExpression(), value); for (PathValidator pv : validators) elUtils.invokeMethod(context, pv.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced });
public Object invokeMethod(final FacesContext context, final String expression) throws ELException { return invokeMethod(context, expression, new Class[] {}, null); }
value = elUtils.getValue(context, expression);
String el = param.getExpression().getELExpression(); if (elUtils.getExpectedType(context, el).isArray()) Object coerced = elUtils.coerceToType(context, el, values); for (String id : param.getValidatorIdList()) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); if (value != null) Object coerced = elUtils.coerceToType(context, el, value); for (String id : param.getValidatorIdList()) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); + elUtils.getExpectedType(context, currentParameter.getExpression().getELExpression()) + "]"); handleValidationFailure(context, message, currentParameter.getOnError());
if (elUtils.getExpectedType(context, el).isArray()) elUtils.setValue(context, el, values); Class<?> expectedType = elUtils.getExpectedType(context, el); Converter converter = context.getApplication().createConverter(expectedType); elUtils.setValue(context, el, convertedValue); elUtils.setValue(context, el, valueAsString);