@Autowired
private IDemoService demoService;
@RequestMapping(value="/", method=RequestMethod.GET)
public String handleHome(ModelMap model){
SingleRowEntity singleRow = demoService.obterSingleRowEntity();
model.addAttribute("singleRow", singleRow);
model.addAttribute("grid", demoService.obterTodosGridEntity());
List<OpcaoCombo> opcaoCombos = new ArrayList<OpcaoCombo>();
opcaoCombos.add(new OpcaoCombo("","Select one..."));
opcaoCombos.add(new OpcaoCombo("ActionScript").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("AppleScript").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Asp").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("BASIC").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("C").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("C++").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Clojure").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("COBOL").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("ColdFusion").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Erlang").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Fortran").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Groovy").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Haskell").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Java").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("JavaScript").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Lisp").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Perl").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("PHP").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Python").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Ruby").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Scala").ajustSelected(singleRow.getCombo1()));
opcaoCombos.add(new OpcaoCombo("Scheme").ajustSelected(singleRow.getCombo1()));
model.addAttribute("opcaoCombos", opcaoCombos);
return "index";
}