Hello
I got this error during spring controller binding:
Code:org.springframework.beans.InvalidPropertyException: Invalid property 'ingressi[0][id]' of bean class [com.cinebot.bean.json.Ordine]: Property referenced in indexed property path 'ingressi[0][id]' is neither an array nor a List nor a Map; returned value was [1]
this is the Ordine class
and Ingresso classCode:public class Ordine { private List<Ingresso> ingressi=new ArrayList<Ingresso>(); private Short puntoVendita; private Integer spettacolo; private Integer[] posti; //... getters and setters }
and this is what is sended as POST variables:Code:public class Ingresso { private String tipo; private Short num; private Integer id; private Integer set; //...getters and setters }
I can not understand why this is not working. Have you got some suggestions?Code:ingressi[0][id] 1 ingressi[0][num] 1 ingressi[0][set] 1 ingressi[0][tipo] ingresso puntoVendita 1 spettacolo 24
Thnak you


Reply With Quote