Existing complex object binded to a form

Hi,

My application uses classes defined in another package which cannot be altered to look like a Bean. Is there a way to bind them to a form or create a BeanItem from that class?

Thanks

Hi,

Build the Vaadin Form using a new class that follows Bean conventions. This new class instance should wrap instances of old classes that you have mentioned.

See how the Adapter Pattern works and then try to solve this problem.

Sujith.

Yes, that is indeed what I’d do as well. It has the added benefit on decoupling your UI code a bit from direct changes in the ‘back end’.

Thanks for the answer, guys. Actually, this is what I did, after giving up for an answer :).