IN PROGRESS - issue SWF-720: Multiple checkboxes to Collection mapping

http://jira.springframework.org/browse/SWF-720
This commit is contained in:
Keith Donald
2008-07-01 00:12:19 +00:00
parent 5bf58dd1f5
commit 50921e0f88

View File

@@ -26,6 +26,7 @@ import ognl.OgnlException;
import org.springframework.beans.BeanWrapperImpl;
import org.springframework.beans.BeansException;
import org.springframework.beans.InvalidPropertyException;
import org.springframework.binding.expression.EvaluationAttempt;
import org.springframework.binding.expression.EvaluationException;
import org.springframework.binding.expression.Expression;
@@ -107,6 +108,8 @@ class OgnlExpression implements Expression {
try {
// OGNL has no native way to get this information
return new BeanWrapperImpl(context).getPropertyDescriptor(expressionString).getPropertyType();
} catch (InvalidPropertyException e) {
throw new PropertyNotFoundException(new EvaluationAttempt(this, context), e);
} catch (BeansException e) {
throw new EvaluationException(new EvaluationAttempt(this, context), e);
}