On Oct 11, 4:57 am, marc <[email protected]> wrote:
>...
>
> Question 1:
> Is this use of a custom Bean a good approach or am I better off using
> decorators for the Transfer objects?

I'd just use a Decorator. The logic you're describing (ex.
getShortContent()) is just a computed property of the domain object.
You really don't gain anything by adding another layer of indirection,
it's fine for your view to know about the Transfer objects.

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to