cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: [CForms] Creating an intermediate object in binding
Date Sun, 31 Jul 2005 12:01:36 GMT
Ugo Cei wrote:
> Il giorno 29/lug/05, alle 16:34, Leszek Gawron ha scritto:
> 
>> There is one more thing that is awkward with binding: imagine you have 
>> a  OR model with many-to-many relationship. Cforms will allow you to 
>> create  a form with a selection list to define those relationships. 
>> But wait: what you get are the ids of entities not entities themselves.
>>
>> Binding API does not give you access to service manager so you won't 
>> be able to lookup some dao and load the entity by its id.
> 
> 
> I have defined a custom type and convertor for that. The convertor is 
> actually managed by Spring and populated with a DAO and the convertor's 
> factory returns the Spring-managed instance instead of creating a new one.
The convertor itself is spring manager or just the dao it holds?

Do I get it right that you need to implement a separate:

- dao
- convertor
- convertor builder

for every domain object in your model?

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message