Using BeanEditForm? Customize the block for the corresponding Media property, there's an example at the end of the relevant documentation page: http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/BeanEditForm.html. Also, Tynamo's tapestry-model (http://tynamo.org/tapestry-model+guide) handles displaying most of the aggregate entity forms out-of-the-box.
Kalle On Fri, Mar 25, 2011 at 11:31 AM, sockmonster <[email protected]> wrote: > Hi, I have a question about forms. I want to create a form for an entity > class, however the entity class contains references to other entities. For > example: > > class Item { > long id; > String name; > String desc; > Media media; > ... > } > > class Media { > String filename; > String type; > ... > } > > When I create a form for the Item entity it leaves out the Media reference > (I assume because it's not a supported type). How do I create a form that > includes media? > > Many thanks. > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/form-for-nested-entity-tp4264623p4264623.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > 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]
