Hi, Could this tutorial give any help: http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html section Property Editor Overrides.
Best regards, Vesa > Hi, > > I have no clue whether this is your problem but one thing is noticeable: > @ManyToOne needs a @JoinColumn > > Bets regards > > Igor > > On 7/22/07, Julien HENRY <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I'm learning Tapestry 5, and I would like to know how >> to do the following simple example : >> >> I have an object called Person and an object called >> Group. >> >> Person(id, name, group_id) >> Group(id, name) >> >> I would like to create a simple CRUD application. I'm >> following T5 tutorial (using beaneditform) to have a >> page where I can create/insert a Person in my >> database. >> >> It works as long as I haven't relation : >> >> @Entity >> public class Person { >> @Id >> private Integer id; >> >> private String name; >> >> /* GETTERS AND SETTERS */ >> ... >> } >> >> But when I add the relation : >> >> @Entity >> public class Person { >> @Id >> private Integer id; >> >> private String name; >> >> @ManyToOne( cascade = {CascadeType.PERSIST, >> CascadeType.MERGE} ) >> private Group group; >> >> /* GETTERS AND SETTERS */ >> ... >> } >> >> There is no field in the beaneditform to set the >> group. I understand there is no universal behavior, >> and I think customization is required. >> >> I would like to customize my form to add a new text >> field where I can input the group_id. How can I do >> this? >> >> Thanks >> >> Julien >> >> >> >> >> _____________________________________________________________________________ >> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! >> Mail >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]