beaneditor for complex object

2014-02-26 Thread nn kk
Hi I'm trying to create edit form for my hibernate entities. For example: @Entity @Table(name = SOME_OBJECT) public class SomeObject implements Serializable { ... @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = SUB_OBJECT_ID, nullable = false) private SubObject

Re: beaneditor for complex object

2014-02-26 Thread Thiago H de Paula Figueiredo
You should either explicitly persist the inner object itself or add a cascading option to the relationship mapping. This isn't related to Tapestry at all, just to the way you're using Hibernate. On Wed, 26 Feb 2014 07:59:37 -0300, nn kk inv...@abv.bg wrote: Hi I'm trying to create edit

Re: beaneditor for complex object

2014-02-26 Thread Kalle Korhonen
Beaneditor doesn't handle nested entities. Beaneditor (or the underlying BeanEditForm) renders an html form and nested forms are not allowed. One of the simplest things you could do is to render just those field you actually need to edit from the child object. Or, if you want a complete solution,

Re: beaneditor for complex object

2014-02-26 Thread Thiago H de Paula Figueiredo
On Wed, 26 Feb 2014 14:09:53 -0300, Kalle Korhonen kalle.o.korho...@gmail.com wrote: Beaneditor doesn't handle nested entities. Beaneditor (or the underlying BeanEditForm) renders an html form and nested forms are not allowed. BeanEditor does *not* render a form element, so you can nest a