You can always use the object assembler pattern.
Which framework are you using? Struts? JSF?
The reality is, your UI won't always map directly to JavaBeans. Indeed, everything from formatting of data, to simply providing an easy set of classes to UI developers, might mean a little 'massaging' of the object model might be needed. It doesn't always make life easy, but sometimes it needs to be done.
Can you give more specifics about your problem? Maybe a simplified example?
-Cameron McKenzie
_________________ Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?" http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials
|