cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [RT] Access to the object model
Date Tue, 20 May 2003 07:01:42 GMT
on 5/20/03 12:54 AM Carsten Ziegeler wrote:

> Stefano Mazzocchi wrote:
> 
>>on 5/19/03 9:37 AM Carsten Ziegeler wrote:
>>
>>
>>>Yes, I currently don't know which way is better. Using Context and
>>>Resolvable is somehow cleaner (IoC), but the static version is very
>>>simple. Hmm, has anyone else an opinion?
>>
>>Question: why do you need this in the first place?
>>
> 
> At least there are two cases where I need the object model:
> a) to get information about the current request, so basically getting
>    the current request/response object and any other information
>    stored in the object model

why reinverting the control? can't you have the request controller pass
the parameters to your component?

> b) to store information on a per request base, so basically using
>    the request attributes to store/retrieve information

all my IoC-control alarms went off-scale. :-)

> I think for developing components those two things are very useful and
> needed.

I'm sorry but I still don't see it. Can you come up with a real life
example to show your point?

-- 
Stefano.



Mime
View raw message