cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armaz Mellati <armaz.mell...@uninett.no>
Subject Re: How to get objectModel from Flow ?
Date Mon, 02 Jul 2007 11:46:39 GMT
Thanks Ard.

I am pretty amazed that no body else has come with any simpler way to do 
it. The javadoc for ApplicationUtil states actually this :

    Utility class that can be used from flow to access the different 
application functions of Cocoon Authentication.

But at least now I have away of doing it. Thanks again.

Regards,
Armaz



Ard Schrijvers wrote:
> Hello,
>
> var objectModel = org.apache.cocoon.components.ContextHelper.getObjectModel(avalonContext)
>
> should do the trick. Now, all you need it to know how to get the avalonContext :-) 
>
> A probably incredible dirty way is something like
>
> cocoon.getComponent(Packages.org.apache.cocoon.forms.FormManager.ROLE).getAvalonContext()
>
> but hopefully somebody knows a more solid solution,
>
> Regards Ard
>
>   
>> Hi
>>
>> How do I get the objectModel when in flow ?
>> I need it to do something like this, as I can in an action :
>> org.apache.cocoon.auth.ApplicationUtil.getUser(objectModel);
>>
>> Regards,
>> Armaz Mellati
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message