I am learning about Cairgorm, and about the usage of Value Objects. This makes 
sense. However, I am curious about how to handle basic operations on these 
value objects.
 
When I pass an item to a form component, I am inclined to permit the form 
component to perform update operations on the item like 
item.assignToCategory(category); I think this is intuitive for the design of 
the form component.

But this means that the item value object is not just a model, but also a 
controller in some aspect. The alternative as I understand it is to say 
something like Controller.addCategoryToItem(item,category) which is OK but I 
think it is sort of clunky.

Direction? Advice? Am I missing something? Please.

Thanks,

- Ariel




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to