Search code examples
javahibernatetapestry

Creating select in BeanEditForm from Hibernate and Tapestry IOC


How can I make a select box in BeanEditForm for some key that is not showing in BeanEditForm for example I have a table:

Person:

IDPerson
PersonName

and table

Contact:

IDContact
IDPerson
ContactName

and I want to create a BeanEditForm with allows me to choose a person from list when adding a contact in tapestry 5.3.


Solution

  • Please try following

    <t:beaneditor t:id="contact" add="person" object="contact">
        <p:person>
            <t:select .../>
        </p:person>
    </t:beaneditor>
    

    It should work, but I'm typing that from top of my head.