1
@GetMapping("/cadastrarProduto")
public ModelAndView cadastrarProduto() {
modelAndView = new ModelAndView("pages/index");
addObject("produtoEntity", new ProdutoEntity());
modelAndView;
}
It is possible with ajax to change the attributes values of the Product object() passed in the example above?
Voce uses Convert in project?
– Rodrigo Costa
In some entities yes, usually in attributes of type Enum or Localdate
– Henrique Schmitt
The best solution I could find was to send a @Modelattribute to Submit and capture the object on the server side.
– Henrique Schmitt