Re: [appfuse-user] [Spring mvc] problem with form:select multiple

2007-08-27 Thread Julien C.
oups! I've done a mistake. I had not deleted "mappedBy..." It's working fine now. Thank you Michael. Julien. Michael Horwitz a écrit : Could you post your modified annotations? On 8/24/07, *Julien C.* <[EMAIL PROTECTED] > wrote: It's not better. Michael Ho

Re: [appfuse-user] [Spring mvc] problem with form:select multiple

2007-08-24 Thread Michael Horwitz
Could you post your modified annotations? On 8/24/07, Julien C. <[EMAIL PROTECTED]> wrote: > > It's not better. > > > Michael Horwitz a écrit : > > Try this from the Hibernate annotiations guide: > > To map a bidirectional one to many, with the one-to-many side as the > owning side, you have to re

Re: [appfuse-user] [Spring mvc] problem with form:select multiple

2007-08-24 Thread Julien C.
It's not better. Michael Horwitz a écrit : Try this from the Hibernate annotiations guide: To map a bidirectional one to many, with the one-to-many side as the owning side, you have to remove the mappedBy element and set the many to one @JoinColumn as insertable and updatable to false. This

Re: [appfuse-user] [Spring mvc] problem with form:select multiple

2007-08-24 Thread Michael Horwitz
Try this from the Hibernate annotiations guide: To map a bidirectional one to many, with the one-to-many side as the owning side, you have to remove the mappedBy element and set the many to one @JoinColumn as insertable and updatable to false. This solution is obviously not optimized and will prod

Re: [appfuse-user] [Spring mvc] problem with form:select multiple

2007-08-24 Thread Julien C.
I think it's correct : - @Entity public class Enquete implements java.io.Serializable { ... @OneToMany(mappedBy="enquete",cascade=CascadeType.ALL) public Set getModeles() { return modeles; } ... } @Entity public class Modele implement

Re: [appfuse-user] [Spring mvc] problem with form:select multiple

2007-08-24 Thread Michael Horwitz
Have you set the appropriate cascade on the relationship between Enquete and Modele? Mike On 8/24/07, Julien C. <[EMAIL PROTECTED]> wrote: > Hi, > > I don't figure out how to use the form:select tag with multiple select. I > have try this : > > - > > > >

[appfuse-user] [Spring mvc] problem with form:select multiple

2007-08-24 Thread Julien C.
Hi, I don't figure out how to use the form:select tag with multiple select. I have try this : - itemLabel="nom"> - no errors but nothing is selected and nothing is saved - I have registered a custom binder for Mo