@ -30,7 +30,7 @@ import org.springframework.model.binder.BindingResult;
@@ -30,7 +30,7 @@ import org.springframework.model.binder.BindingResult;
/ * *
* A { @link Binder } implementation that accepts any target object and uses
* Spring ' s Expression Language support to evaluate the keys in the field
* Spring ' s Expression Language ( SpEL ) to evaluate the keys in the field
* value Map .
* @author Mark Fisher
* @since 3 . 0
@ -43,12 +43,11 @@ public class GenericBinder extends AbstractBinder<Object> {
@@ -43,12 +43,11 @@ public class GenericBinder extends AbstractBinder<Object> {
@Override
protected FieldBinder createFieldBinder ( Object model ) {
StandardEvaluationContext evaluationC ontext = new StandardEvaluationContext ( ) ;
evaluationC ontext. setRootObject ( model ) ;
return new EvaluationContextFieldBinder ( parser , evaluationC ontext) ;
StandardEvaluationContext c ontext = new StandardEvaluationContext ( ) ;
c ontext. setRootObject ( model ) ;
return new EvaluationContextFieldBinder ( parser , c ontext) ;
}
private static class EvaluationContextFieldBinder implements FieldBinder {
private final ExpressionParser parser ;