"Best practices using value objects"

I still have questions regarding best practices, the use value object and of
the <beanutil> package. How would you convert a value object to a form bean
if a property of the VO is a list of other object that would need to be
converted to a form? 
Here is an example of what I am trying to do. I have value objects coming
from the business tier.

  VOSchool
String address
Vector students

  VOStudent
String name
int status
boolean isPresident
Vector courses

I have a page with a lists of all students names, a radio button to indicate
if he is the president and a checkbox that changed the status  is selected.

I think I need a StudentForm with all the info from the VO plus a boolean
isSelected property. My SchoolForm need all info from the VO plus a
president property.

-       How can I best reuse by VOs? 
-       Should I add a property to the VOs? How?
-       Are the forms dynamic forms? 
-       Should I copy all attributes form the VO to a form?
-       Do I need to write a converter for all my VOs, VO to form and form
to VO?

I think it is a very common problem but I was not able to find a pretty
solution nor an example on how to do this.

Thanks
Stephan



Reply via email to