I am having trouble deciding if I should use my ActionForms as beans on
view pages. The problem is, my view pages require so much more info than
my action forms.
e.g.
my form to insert new article:
ArticleForm{
private String title; //corresponds to textfield
private String author; //corresponds to select drop-down box
}
where my VO to display the article would need to display more info about
the author.
ArticleVO {
private String title;
private Person author;
}
Person {
private int ID;
private String name;
private String phoneNum;
private String location;
}
I couldn't just use the ArticleForm to display the article because I need
more than just the author name. I need the phone number and location.
Also, part of me is just reluctant to use forms for display purposes
because I feel they should be reserved for form use only. Making separate
form and view beans is more work, and seems ridiculous at times because of
the similarity between the two, but I think it might be the best way?
Any opinions?
Trevor
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>