@Test public void testEvaluateString() { String expression = "requestScope.object1"; assertEquals("The value is not correct", "value", evaluator.evaluate( expression, request)); expression = "sessionScope.object2"; assertEquals("The value is not correct", new Integer(1), evaluator .evaluate(expression, request)); expression = "applicationScope.object3"; assertEquals("The value is not correct", new Float(2.0), evaluator .evaluate(expression, request)); expression = "object1"; assertEquals("The value is not correct", "value", evaluator.evaluate( expression, request)); expression = "object2"; assertEquals("The value is not correct", new Integer(1), evaluator .evaluate(expression, request)); expression = "object3"; assertEquals("The value is not correct", new Float(2.0), evaluator .evaluate(expression, request)); expression = "paulaBean.paula"; assertEquals("The value is not correct", "Brillant", evaluator .evaluate(expression, request)); expression = "'String literal'"; assertEquals("The value is not correct", "String literal", evaluator .evaluate(expression, request)); verify(request, applicationContext); }
public Object evaluate(String expression, Request request) { if (expression == null) { throw new IllegalArgumentException("The expression parameter cannot be null"); } requestHolder.setTilesRequestContext(request); return MVEL.eval(expression, variableResolverFactory); }
MVELAttributeEvaluator extends AbstractAttributeEvaluator { public Object evaluate(String expression, Request request) { if (expression == null) { throw new IllegalArgumentException("The expression parameter cannot be null"); } requestHolder.setTilesRequestContext(request); return MVEL.eval(expression, variableResolverFactory); } }
MVELAttributeEvaluator extends AbstractAttributeEvaluator { public Object evaluate(String expression, Request request) { if (expression == null) { throw new IllegalArgumentException("The expression parameter cannot be null"); } requestHolder.setTilesRequestContext(request); return MVEL.eval(expression, variableResolverFactory); } MVELAttributeEvaluator(TilesRequestContextHolder requestHolder,
            VariableResolverFactory variableResolverFactory); }
MVELAttributeEvaluator extends AbstractAttributeEvaluator { public Object evaluate(String expression, Request request) { if (expression == null) { throw new IllegalArgumentException("The expression parameter cannot be null"); } requestHolder.setTilesRequestContext(request); return MVEL.eval(expression, variableResolverFactory); } MVELAttributeEvaluator(TilesRequestContextHolder requestHolder,
            VariableResolverFactory variableResolverFactory); Object evaluate(String expression, Request request); }
MVELAttributeEvaluator extends AbstractAttributeEvaluator { public Object evaluate(String expression, Request request) { if (expression == null) { throw new IllegalArgumentException("The expression parameter cannot be null"); } requestHolder.setTilesRequestContext(request); return MVEL.eval(expression, variableResolverFactory); } MVELAttributeEvaluator(TilesRequestContextHolder requestHolder,
            VariableResolverFactory variableResolverFactory); Object evaluate(String expression, Request request);  }