Package org.springframework.web.bind.support

Examples of org.springframework.web.bind.support.WebDataBinderFactory


    // Resolve successfully handler session attribute once
    assertTrue(sessionAttrsHandler.isHandlerSessionAttribute(attrName, null));

    WebDataBinder dataBinder = new WebDataBinder(attrValue, attrName);
    WebDataBinderFactory binderFactory = mock(WebDataBinderFactory.class);
    given(binderFactory.createBinder(webRequest, attrValue, attrName)).willReturn(dataBinder);

    ModelFactory modelFactory = new ModelFactory(null, binderFactory, sessionAttrsHandler);
    modelFactory.updateModel(webRequest, mavContainer);

    assertEquals(attrValue, mavContainer.getModel().get(attrName));
View Full Code Here


      NavigationContext context) throws Exception {

    Object bean = getApplicationContext().getBean(navigationMethod.getBeanName());
    Class<?> beanType = ClassUtils.getUserClass(bean.getClass());

    WebDataBinderFactory binderFactory = createDataBinderFactory(bean, beanType);

    HandlerMethodArgumentResolverComposite argumentResolvers = new HandlerMethodArgumentResolverComposite();
    argumentResolvers.addResolvers(this.argumentResolvers);
    argumentResolvers.addResolver(new NavigationContextMethodArgumentResolver(context));
    ServletInvocableHandlerMethod invocable = createInvocableNavigationMethod(bean, navigationMethod.getMethod());
View Full Code Here

TOP

Related Classes of org.springframework.web.bind.support.WebDataBinderFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.