How do I correctly set up a BeanEditForm for editing a
hibernate entity?

In T4 I would create hidden field in my form with the
id of the entity and add a listener to this field,
which would retrieve the entity from DB, before the
rest of the form is processed. Then the form would
update the fields in the entity and the entity would be
saved at the end of the request processing.

In T5 seems that onPrepare event of the form is
designed for this purpose. But how do I store the ID of
my entity in the form? One way I thought of, was using
the context parameter of the form, but the BeanEditForm
does not have a context parameter and it does not
propagate it further to the underlaying Form.

Thanks,
Imants


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to