Hi all,
When a method annotated with ModelAttribute the return data that will be bounded to a form:
@ModelAttribute("someName")
public List getSomeList(){
}
What is the correct way to access "someList" during from different method
Newbie question - how to change ModelAttribute data
say:
Code:@RequestMapping(method = RequestMethod.GET) public ModelAndView setUpForm(){ ModelAndView modelAndView = new ModelAndView("driverForm"); modelAndView.addObject("driver",driver); // change the list value here return modelAndView; }


Reply With Quote