struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Price <epr...@ptc.com>
Subject Re: value objects and forms
Date Mon, 19 May 2003 16:44:37 GMT


florian wrote:

> basically i wonder what speaks against this:
> 
> having a formbean with a instance of the vo. all the getter and setter 
> calls are delegated to
> the getter and setter methods in the vo.
> 
> this would allow the vo to be populated automatically and the formbean 
> would be just a
> wrapper around it..

Good question.  I don't see anything wrong with it, I'd be interested in 
hearing others' opinions to learn from.

> the only thing i wonder about: is it allowed to to have getter and 
> setters which dont map
> directly a field of the object? does this violate the javabean spec?

No, you can have bean properties that do not correspond to actual fields.



Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message