
Originally Posted by
Andrew E
Wish I had a better answer for you. I just spoke with the developer who implemented that view and he said that there might be some situations where it does not work. It would help reproducibility if you could include some of your RequestMappings. Thanks.
Here is the controller code with request mappings. I have also added this attachment to the bug report. Please if possible let me know when it is resolved( if possible only)
Code:
@Controller
public class EmployeesController {
@Autowired
private Service service;
@RequestMapping("/employeeList.html")
@ModelAttribute("employee")
public String getEmployees(Model model) {
List<Employee> listEmp = (List<Employee>) service.getAllEmployees();
model.addAttribute("employees", listEmp);
HttpSession session = req.getSession(true);
}
@RequestMapping("/employeeDetails.html")
public Employee getEmployee(@RequestParam(value="id", required=true) int countryId) {
return service.getEmployeeById(countryId);
}
}