removed some overloaded bean: prefix support for view=, on=, and to=
This commit is contained in:
Keith Donald
2008-03-07 16:38:38 +00:00
parent 6e4c4236f6
commit 03007f9fc6
20 changed files with 135 additions and 181 deletions

View File

@@ -35,8 +35,7 @@ public class EvaluationException extends NestedRuntimeException {
* @param cause the underlying cause of this exception
*/
public EvaluationException(EvaluationAttempt evaluationAttempt, Throwable cause) {
super("Expression " + evaluationAttempt
+ " failed - make sure the expression is evaluatable in the context provided", cause);
super(evaluationAttempt + " failed - make sure the expression is evaluatable in the context provided", cause);
this.evaluationAttempt = evaluationAttempt;
}

View File

@@ -7,6 +7,7 @@ import javax.el.ValueExpression;
import org.springframework.binding.expression.EvaluationAttempt;
import org.springframework.binding.expression.EvaluationException;
import org.springframework.binding.expression.Expression;
import org.springframework.binding.expression.SetValueAttempt;
import org.springframework.util.Assert;
/**
@@ -50,7 +51,7 @@ public class ELExpression implements Expression {
try {
valueExpression.setValue(ctx, value);
if (!ctx.isPropertyResolved()) {
throw new EvaluationException(new EvaluationAttempt(this, context), null);
throw new EvaluationException(new SetValueAttempt(this, context, value), null);
}
} catch (ELException ex) {
throw new EvaluationException(new EvaluationAttempt(this, context), ex);